Skip to main content
We are aware of an issue with a recent Apache update that causes proxied sites to return a "421 Misdirected Request" error. Please see the following article for more information and updates:
Websites show 421 Misdirected Request error while using EA Nginx

"All PHP Options + OpCache" PHP Handlers is cgi actually FCGI?

Comments

7 comments

  • vacancy
    Proxy_fcgi only applies to php-fpm. It can not be used as a handler. Proxy_fcgi + php-fpm + suphp configuration is suitable. But in order to use php-fpm, php-fpm must be activated manually after the php version for each site has been set. The mod_fcgid component must be loaded to use the fcgi handler. But mod_fcgid does not support multi php and php-fpm.
    0
  • mikefromnz
    Thanks for that, I can't understand why it has to be set manually as it seems so much better. I can't see any way to install fcgid (it simply does not exist in EasyApache) although I guess I don't need it. For sites not using PHP-FPM (as in default config, seen FPM can't be the default), would I be better off using SuPHP or CGI in the PHP Handlers (keeping in mind I have SUEXEC etc
    0
  • vacancy
    Yes php-fpm is much better. But doing so manually on servers that have multiple accounts is making it difficult. A request has been made about this subject, but there is no improvement yet. Maybe we will see v66. mod_fcgid document Apache Module: FCGId - EasyApache 4 - cPanel Documentation
    0
  • mikefromnz
    Any issues with simply enabling PHP-FPM for everyone? is it more resource hungry or something? trying to understand why it cant be default. And also not sure if you saw but... For sites not using PHP-FPM (as in default config, seen FPM can't be the default), would I be better off using SuPHP or CGI in the PHP Handlers (keeping in mind I have SUEXEC etc
    0
  • vacancy
    Cgi handler suexec does not work well, always suphp should be preferred. I am using fastcgi_proxy + php-fpm + suphp, I am very satisfied. The only problem is that we deal with each site manually as we talked about before. I do not know the difficulties in this issue, it is really hard to do or I am wondering if it is seen as an unnecessary feature by cPanel. But this is the most important thing right now. You can follow the link. PHP-FPM enabled by default on account creation
    0
  • mikefromnz
    Hey thanks for being super helpful :) so I guess seen I am doing shared hosting, leave system on SuPHP as handler to keep security when new accounts added, then manually adjust them to PHP-FPM as soon as possible :)
    0
  • cPanelMichael
    Hello, It looks like your questions have been answered. Feel free to let us know if you have any concerns. Thanks!
    0

Please sign in to leave a comment.