在centos上用apache2.2.3configurationmod_fastcgi出现suexec错误

我一直在关注这篇博文,以便我可以使用FastCGI在PHP进程之间共享APC操作码caching。 不幸的是,我启动httpd时出现以下错误:

Starting httpd: Syntax error on line 4 of /etc/httpd/conf.d/mod_fastcgi.conf: FastCgiWrapper: "/usr/sbin/suexec" execute access for server (uid -1, gid -1) failed: execute not allowed 

mod_fastcgi.conf的第4行有FastCgiWrapper On 。 我注意到文档指出这行可以指定包装的path 。 应该改变吗?

我检查了用户的php-fastcgi脚本( 550 )和目录( 555 )的权限是正确的,/ usr / sbin / suexec是正确的( -rs--x--- ),并且suEXEC正在被加载apache( [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) )。

我应该在哪里看? 我很确定这是一个权限或path问题…

TIA,
JD

这与指令的顺序有关。 在conf/http.conf ,它指定了UserGroup指令之前包含conf.d/*

尝试把mod_fastcgi.conf放在conf/httpd.conf末尾

 Include conf/mod_fastcgi.conf