apachectl -t
检测错误信息
cgi 模式
参考文章:Run PHP Applications under CGI with Apache on Debian 5
Local 8021 cgi
a2enmod actions
ScriptAlias /local-bin /usr/bin
AddHandler application/x-httpd-php5 php
Action application/x-httpd-php5 /local-bin/php-cgi
fastcgi 模式
a2enmod proxy
a2enmod proxy_fcgi
<FilesMatch "\.php$">
SetHandler "proxy:unix:/var/run/php5-fpm.sock|fcgi://localhost"
</FilesMatch>
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>