inetbizo

Well-Known Member
Where is the actual binary? I came across github.com/denverprophitjr/php-fpmpal from some other source. And, I need to update php-fpm binary locations.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
Hello,

Could you provide some more information about how you'd like to call PHP? Generally, you simply enable PHP-FPM for the domain name via "WHM >> MultiPHP Manager", and then use PHP like you normally would with any other handler because it configures the domain name to use PHP-FPM. Otherwise, if you require the actual path, it's at:

/opt/cpanel/ea-php56/root/usr/sbin/php-fpm

You'd replace "php56" with the specific version of PHP.

Thank you.
 

inetbizo

Well-Known Member
Hello,

Could you provide some more information about how you'd like to call PHP? Generally, you simply enable PHP-FPM for the domain name via "WHM >> MultiPHP Manager", and then use PHP like you normally would with any other handler because it configures the domain name to use PHP-FPM. Otherwise, if you require the actual path, it's at:
Code:
/opt/cpanel/ea-php56/root/usr/sbin/php-fpm
You'd replace "php56" with the specific version of PHP. Thank you.
Hey Michael. I actually forked and probably will have to maintain the repo, too. The bash script currently determines installation at github.com/denverprophitjr/php-fpmpal/blob/master/php-fpmpal.sh#L64

In centOS 6 cpanel 64 build 33 this script failed to determine that php-fpm was installed. The command line check was
Code:
php-fpm -v
 
Last edited by a moderator:

inetbizo

Well-Known Member

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
Hello,

If I understand correctly, you'd like to detect if a domain name is using PHP-FPM. If so, the supported method of doing this is through our API. Here are the WHM API 1 and UAPI functions you can use via the command line or as part of a script:

WHM API 1 Functions - php_get_vhost_versions - Software Development Kit - cPanel Documentation
UAPI Functions - LangPHP::php_get_vhost_versions - Software Development Kit - cPanel Documentation

Could you confirm if this is what you are looking for?

Thank you.
 

inetbizo

Well-Known Member
Not what I would like. This repo is supposed to be for any system. Making API calls makes things over complicated. There are RPMs for PHP5 / PHP7.0-FPM that have a binary file to call php-fpm. Do you use the RPMs?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
There are RPMs for PHP5 / PHP7.0-FPM that have a binary file to call php-fpm. Do you use the RPMs?
Hello,

EasyApache 4 uses RPMs, but not the stock RPMs used on a vanilla CentOS system. The script in-question doesn't seem to be designed with cPanel's PHP-FPM implementation in-mind. Here's a document that explains how PHP-FPM is implemented with EasyApache 4:

PHP-FPM User Pools - Documentation - cPanel Documentation

Thank you.
 

inetbizo

Well-Known Member
I'll see if I can figure out something else then without having to custom make for cpanel alone. You all can, of course, fork it and customize it to meet cpanel's needs. Many notices have no idea what to input for pool size.