Php-fpm & cgi vs suPHP
Hi,
We have a new bare metal server we are using shared hosting and I wanted to make sure we are using the correct configuration for speed vs security.
I am slightly confused of what php-fpm is, in relation to cgi and suPHP.
php-fpm is installed and enabled, but then there is an option for php handler on the accounts under multi php manager too, which I have selected suPHP. I understood this to be the most secure option.
I have just read however that php-fpm with cgi is the better option for speed vs security.
with that, please can I ask"
1. If php-fpm is enabled on an account, is the php handler, cgi, suPHP, irrelevant and superseded by having php-fpm enabled?
2. If the above is not true and a php handler choice matters, on a shared hosting server, would you choose cgi or suPHP?
thank you
-
CGI and SuPHP -- are almost the same with SuPHP having additional security. php-fpm support opcode cache and is blazing fast. You may also find the following document helpful for general information about each PHP handler:
Hi and thanks for the reply. So if php-fpm is enabled on an account, does that supercede the PHP handler choice? That is to say, if php-fpm is enabled, is that the PHP handler only and the secondary choice, CGI/suphp becomes an irrelevant option? Thank you0 -
yes..when php-fpm is enabled it supersedes the other handlers You can also set the default handler as lsapi after installing the module as below yum -y install ea-apache24-mod_lsapi ea-apache24-mod_suexec php-fpm/lsapi is the recommended handlers for best performance 0
Please sign in to leave a comment.
Comments
3 comments