What is the best PHP handler for APC

I use APC for the opcode under the 4-cpu Litespeed license. What is the best PHP handler for this situation in terms of performance in the first place, and security later?

Is it suphp / dso / fcgi / cgi? (I read that DSO can leave a hole if one of the script has an error)?

myusername@mybox [~]# /usr/local/cpanel/bin/rebuild_phpconf --available
Available handlers: suphp dso fcgi cgi none
PHP4 SAPI: cgi
PHP5 SAPI: not installed
SUEXEC: available
RUID2: not available

Thanks.

+4
source share
1 answer

There is an excellent article on the Servint blog: http://blog.servint.net/2011/10/28/the-tech-bench-all-about-php-handlers/

Be sure to visit a site that has comparative charts.

PHP Handler List

DSO

mod_php. , . . PHP Apache, . , PHP Apache, "nobody".

DSO , . -, , -, "nobody", , -, "". -, PHP, , , . WordPress, WordPress .

: , 777 . , , , , , . -, 664 " ". 775, : . , - , .

, , DSO , suPHP/FastCGI. ", , , -. , , , "". . "".

DSO . , eAccelerator APC, DSO , . .

, DSO , -, .

CGI

CGI PHP CGI, Apache. CGI , DSO . , , , suEXEC. ServInt CGI.

suPHP

suPHP PHP , Apache . CGI, CGI, . suPHP , suEXEC PHP , , "". , Spock, Apache, - , Spock. , - .

, . - , , "". , / CMS , / : 644 , 755 : .

suPHP DSO , suPHP , / . - , , , -. . "".

suPHP . suPHP , , . suPHP , , eAccelerator APC, . - , CMS, W3-Total-Cache WordPress. . , , cPanel.

FastCGI

FastCGI (aka: mod_fcgid) suPHP, , PHP, Apache. CGI, , suEXEC PHP . suPHP, . , PHP. suPHP , PHP-, FastCGI , PHP. , eAcceleartor APC, .

, FastCGI . - , , , FastCGI.

FastCGI suPHP - . suPHP , , -, , . ( ) . FastCGI , , ; ( ).

+9

All Articles