Php IBM HTTP服务器(Apache2)错误
我已将IBM HTTP服务器配置如下:Php IBM HTTP服务器(Apache2)错误,php,apache2,ibmhttpserver,Php,Apache2,Ibmhttpserver,我已将IBM HTTP服务器配置如下: <IfModule mod_fastcgi.c> Options Indexes MultiViews ExecCGI FastCGIServer "c:/php7.1/php-cgi.exe" SetHandler fastcgi-script </IfModule> <Directory "C:/IBM/HTTPServer85/htdocs/public"> AddHandler fastcgi-scri
<IfModule mod_fastcgi.c>
Options Indexes MultiViews ExecCGI
FastCGIServer "c:/php7.1/php-cgi.exe"
SetHandler fastcgi-script
</IfModule>
<Directory "C:/IBM/HTTPServer85/htdocs/public">
AddHandler fastcgi-script .php
Options FollowSymLinks Indexes MultiViews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
我得到以下错误:
[Mon Jan 29 12:17:22 2018] [notice] Child 8328: Starting 600 worker threads.
[Mon Jan 29 12:17:22 2018] [notice] FastCGI: process manager initialized
[Mon Jan 29 12:17:22 2018] [warn] FastCGI: server "C:/php7.1/php-cgi.exe" started (pid 4636)
[Mon Jan 29 12:17:22 2018] [notice] Child 8328: Listening on port 443.
[Mon Jan 29 12:17:22 2018] [notice] Child 8328: Listening on port 8443.
[Mon Jan 29 12:17:24 2018] [error] [client 192.168.107.169] (OS 2)The system cannot find the file specified. : FastCGI: stat() of "C:/IBM/HTTPServer85/htdocs/public/login/" failed
[Mon Jan 29 12:17:24 2018] [crit] (OS 193)%1 is not a valid Win32 application. : FastCGI: can't start (dynamic) server "C:/IBM/HTTPServer85/htdocs/error/500/index.php": spawn_fs_process() failed
[Mon Jan 29 12:17:24 2018] [crit] [Mon Jan 29 12:17:24 2018] file G:\\blddir\\IHS85\\apache\\modules\\fastcgi\\fcgi_pm.c, line 1787, assertion "s->procs[i].pid < 0" failed
我的http.conf有什么问题?看起来您有一个混合/部分配置,可以通过多种方式配置fastcgi 在mod_fastcgi IHS 8.5.5及更早版本的时代,您通常会在这里看到Action指令,它导致请求foo.php作为参数传递给php解释器 因为您没有操作,并且您的SetHandler不限于 任何特定的扩展,mod_fastcgi都会尝试调用您的php脚本 直接作为可执行文件。在Windows上,intepreter要使用的关联是操作系统的全局关联
如果您坚持使用mod_fastcgi,我建议您使用您随处可见的具有操作的样板示例。但是,即使IHS 9也有mod_proxy_fcgi,您也可以配置它和php fpm,没有理由用它折磨自己。但是我们的服务器是IHS 8.5,而不是上面的。我已经按照你的建议从其他来源复制了样板代码,但是我仍然得到了同样的错误。你可能也需要修复SetHandler