php-cgi中一个常见的异常

php-cgi中一个常见的错误

php-cgi中一个常见的错误:

Wrapper C:/Apache2/php/php-cgi.exe cannot be accessed: (70008)Partial results are valid but processing is incomplete

----------------------------------------------------------------------------------------------

在启动httpd的时候由于Windows的ActiveDirectory的权限控制导致访问php-cgi无法访问,继而造成httpd启动失败。

问题详细分析及解决方法:

点击查看

比较简单的解决方案:

修改文件(此处对应的文件为php-cgi.exe)的权限

  1. 查看文件Security属性,禁止从父级目录继承权限
  2. 删除文件的默认user,只保留local SYSTEM account / the local Administrator account.
  3. 如果上述修改不行,将
  4. 启动httpd试试,如果还是不可以就只能使用另一个方法:重新编译mod_fcgid了

最后,
问题关键所在:源文件 fcgid_conf.c

/* Does the wrapper exist? */
if ((rv = apr_stat(&finfo, path, APR_FINFO_NORM,
cmd->temp_pool)) != APR_SUCCESS) {
return missing_file_msg(cmd->pool, "Wrapper", path, rv);
}

此处如果直接将return注释掉就不会报错,不过这个解决方法比较搓@_@