"All PHP Options + OpCache" PHP Handlers is cgi actually FCGI?
Hi guys
I run a shared hosting server and am using All PHP Options + OpCache in EasyApache.
I see it has proxy_fcgi, although in the PHP Handlers I only see option for SUPHP or CGI.
Am I right in assuming because mod_proxy_fcgi is part of the options package, when choosing CGI, it's actually running Fast CGI (for OpCache etc)
And in this configuration is it secure, or am I best still to forget opcache and just use SuPHP handler, or even PHP-FPM manually on each site?
-
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 -
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 -
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 -
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 -
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 -
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 -
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.
Comments
7 comments