一个服务器上的Suphp和mod_fcgid

你好可能吗? 我的脚本不适用于mod_fcgid,但使用suphp,所以我想在一台服务器上用suphp和其他mod_fcgid + xcache运行一个域。 我不想用suphp运行每个站点,因为xcache不能使用它。

有可能看看这个: http : //brinet.net/enable-fastcgi-per-site

首先configuration你的服务器使用cPanel使用suPHP,并使用easyphp启用mod_fcgid

编辑/usr/local/apache/conf/php.conf

添加模块和包装指令

 # Fastcgi configuration for PHP5 LoadModule fcgid_module modules/mod_fcgid.so FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php 

创build/编辑/ usr / local / cpanel / cgi-sys / php5包含

 #!/bin/sh # If you customize the contents of this wrapper script, place # a copy at /var/cpanel/conf/apache/wrappers/php5 # so that it will be reinstalled when Apache is updated or the # PHP handler configuration is changed exec /usr/bin/php 

创build可执行文件并由root用户拥有chown root:wheel / usr / local / cpanel / cgi-sys / php5 chmod 755 / usr / local / cpanel / cgi-sys / php5

现在在.htaccess中为.php和fcgid-script添加一个处理程序

重启apache

 /etc/init.d/httpd restart