Skip to main content

PHP-FPM Binary

Comments

8 comments

  • cPanelMichael
    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.
    0
  • inetbizo
    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.

    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
    php-fpm -v
    0
  • cPanelMichael
    Hello, The following document helps to explain how to call PHP via the command line in EA4: EasyApache 4 and the ea-php-cli Package - EasyApache 4 - cPanel Documentation Let us know if you have any questions. Thank you.
    0
  • inetbizo
    Hello, The following document helps to explain how to call PHP via the command line in EA4:
    0
  • cPanelMichael
    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.
    0
  • inetbizo
    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?
    0
  • cPanelMichael
    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.
    0
  • inetbizo
    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.
    0

Please sign in to leave a comment.