Control Web Panel
WebPanel => PHP Selector => Topic started by: FreshLondon on July 22, 2021, 07:36:58 PM
-
Hi chaps,
We have a server, installed as default and then upgraded to use the PHP-FPM selector.
I'm currently tasked with installing the PHP PECL Trader extension for a project, yet installing via CLI only installs for the default PHP version (5.6) and not the FPM selected PHP version.
PHP7.4 is set as the alias in the bash profile.
Tried adding flags to the PECL install, no luck.
Going via PECL extensions on the CWP admin also shows no available extensions, I've hit a brick wall.
Any suggestions? Thanks in advance! :)
-
same problem with trader.so and php-fpm
-
In the CLI, you have to call the specific version of php-fpm you want, instead of just blindly calling php in the terminal. For example, call php 8.1 with no memory limit (as I often have to do with composer):
/opt/alt/php-fpm81/usr/bin/php -d memory_limit=-1
And for things that need to run as a specific user, instead of root:
sudo -u USERNAME /opt/alt/php-fpm81/usr/bin/php -d memory_limit=-1
-
In the CLI, you have to call the specific version of php-fpm you want, instead of just blindly calling php in the terminal. For example, call php 8.1 with no memory limit (as I often have to do with composer):
/opt/alt/php-fpm81/usr/bin/php -d memory_limit=-1
And for things that need to run as a specific user, instead of root:
sudo -u USERNAME /opt/alt/php-fpm81/usr/bin/php -d memory_limit=-1
Can't understand what this answer has to be with the PECL question.
NOTE: I second this question because PECL is not working for php-fpm installations
-
same problema.
at pecl manager, packages availables for php 8.3 is empty. at cli pecl try to install only for the default php, not the php-fpm.
how to point pecl command line to install packages for php-fpm versions? or how to enable packages at pecl manager?