Skip to main content

PHP FPM and SuPHP/Fastcgid

Comments

5 comments

  • vacancy
    mod_fcgid does not support multi php. For multi php support you should use suphp + php-fpm. Apache Module: FCGId - EasyApache 4 - cPanel Documentation
    0
  • PowerChaos
    Thank you for your reply
    mod_fcgid does not support multi php. For multi php support you should use suphp + php-fpm.

    That is the strange part at this moment i use mod_fcgid for php 7.1 and my older sites run on php 5.6 but i need to enabled the php-fpm option settings are as follow: fcgi handler for php 7.1 suphp handler for php 5.6 php-fpm enabled for accounts on php 5.6 result => php-fpm accounts do have php 5.6 (old scripts) php-fpm not enabled accounts stays on 7.1 no mather what php version selected (expected behavior of mod_fcgid ) so why does that work then ? how comes that multi php does work with php-fpm ? or is php-fpm not the same as fastcgi but just a suphp system? if i enable php 7.2 with php-fpm, does then all versions change to php 7.2 ? or is each php-fpm a proccess on his own ( so 5.6 stays on 5.6 and 7.2 stays on 7.2 ) so that multi php works as long i keep using the php-fpm option ? The help post only contains info about fcid but it does not explain how php_fpm works and why it does support multi php if this is a bug ( it is not supposed to work that way for example ) then i know that it will not work later on but if that does exactly what it was made for, then i can use the speed/security of mod_fcgid instead switching to the slower suphp Greets From PowerChaos
    0
  • Anoop P Alias
    This is all wrong. Php-fpm is not dependent on suphp . To put it simply php-fpm is a standalone PHP application server and Apache httpd use mod_proxy_fcgi to connect to it. The user group setting are defined in the pool files. Once you turn on phpfpm for an account the PHP version can be changed from the cpanel assuming you have fpm installed for all versions. In short just set the default handler to suphp (this is not used anyway) and turn on PHP fpm for the domain . Ensure the sapi shown in phpinfo is FPM . that's it
    0
  • PowerChaos
    php-fpm is a standalone PHP application server and Apache httpd use mod_proxy_fcgi to connect to it.

    ok thank you This is wat i was looking for Greets From Powerchaos
    0
  • cPanelMichael
    Hello, I've marked this thread as solved. Thank you.
    0

Please sign in to leave a comment.