最近打算学习配置fcgid+php的运行环境
环境为:CentOS5.2 aphche-2.2.10 php-5.2.6 mod_fcgid.2.2当虚拟机的配置为下面时
<VirtualHost *:80>
  ServerAdmin [email protected]
  DocumentRoot /pub/www/www.abc.com/wwwroot
  ServerName www.abc.com
  DirectoryIndex index.html index.htm index.php
   #SuexecUserGroup www.abc.com webgroup
   <Directory "/pub/www/www.abc.com/wwwroot/">
     Options ExecCGI FollowsymLinks SymLinksIfOwnerMatch
     Allow from all
    AllowOverride none
    AddHandler fcgid-script .php
    FCGIWrapper /pub/www/www.abc.com/cgi-bin/php-cgi .php
   </Directory>
  ......
这时运行index.php是没有错的,运行正常
<?php
phpinfo();
?>
但当我在配置把这一行起作用时SuexecUserGroup www.abc.com webgroup
就出错了
suexec_log日志为:
[2009-02-19 05:55:22]: uid: (501/www.abc.com) gid: (150/webgroup) cmd: php-cgi
[2009-02-19 05:55:22]: cannot stat program: (php-cgi)
当然如果是html页面都可以运行正常的,请问是不是php没里没配置好还是fcgid没安装好?