Control Web Panel

WebPanel => PHP Selector => Topic started by: FreshLondon on July 22, 2021, 07:36:58 PM

Title: PECL extensions using PHP-FPM?
Post 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!  :)
Title: Re: PECL extensions using PHP-FPM?
Post by: ruhgardiyani on January 12, 2023, 10:01:44 AM
same problem with trader.so and php-fpm
Title: Re: PECL extensions using PHP-FPM?
Post by: overseer on January 14, 2023, 11:33:24 PM
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):
Code: [Select]
/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:
Code: [Select]
sudo -u USERNAME /opt/alt/php-fpm81/usr/bin/php -d memory_limit=-1
Title: Re: PECL extensions using PHP-FPM?
Post by: Longhorn on October 24, 2023, 12:04:10 AM
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):
Code: [Select]
/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:
Code: [Select]
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
Title: Re: PECL extensions using PHP-FPM?
Post by: diogo-plta on February 26, 2025, 12:54:41 PM
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?