Enable php5 with apache2-mpm-worker in Debian
# apt-get install apache2-mpm-worker libapache2-mod-fcgid apache2-suexec-custom php5-cgi
# a2enmod fcgid suexec actions
add file /etc/apache2/conf.d/php5-fcgid
AddType application/x-httpd-php .php
AddHandler php-fcgi .php
Action php-fcgi /fcgi-bin/php5-fcgi
Alias /fcgi-bin/ /var/www/fcgi-bin/
<Location /fcgi-bin/>
SetHandler fcgid-script
Options +ExecCGI
</Location>
add file /var/www/fcgi-bin/php5-fcgi
#!/bin/sh
exec /usr/bin/php5-cgi [email protected]
Should be OK now...
ref: http://x10hosting.com/forums/vps-tutorials/148894-debian-apache-2-2-fastcgi-php-5-suexec-easy-way.html
没有评论:
发表评论