【问题标题】:IBM HTTP Server (Apache2) errorIBM HTTP 服务器 (Apache2) 错误
【发布时间】:2018-01-29 08:24:31
【问题描述】:

我已将 IBM HTTP Server 配置如下:

<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 有什么问题?

【问题讨论】:

    标签: php apache2 ibmhttpserver


    【解决方案1】:

    看起来你有多种方式的混合/部分配置来配置 fastcgi。

    在 mod_fastcgi 时代(IHS 8.5.5 和更早版本),您通常会在此处看到“Action”指令,该指令导致将 foo.php 请求作为参数传递给 PHP 解释器。

    由于您没有操作,并且您的 SetHandler 不限于 任何特定的扩展,mod_fastcgi 都会尝试调用您的 php 脚本 直接作为可执行文件。在 Windows 上,使用什么解释器的这种关联是操作系统的全局关联。

    如果您坚持使用 mod_fastcgi,我建议您使用随处可见的带有 Action 的样板示例。但是,即使 IHS 9 也有 mod_proxy_fcgi 并且您可以改为配置它和 php-fpm,也没有理由用这个来折磨自己。

    【讨论】:

    • 但是我们的服务器是 IHS 8.5,而不是更高版本。我已按照您的建议使用“操作”从其他来源复制了样板代码,但我仍然遇到同样的错误。
    • 你可能也需要修复 SetHandler
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-23
    • 2016-08-31
    • 1970-01-01
    • 1970-01-01
    • 2011-08-08
    • 2017-10-17
    相关资源
    最近更新 更多