获得;未指定输入文件;尝试在Apache 2.4(Windows)下设置PHP-FPM时
我没有成功地在Apache2.4HTTP服务器的特定文件夹中设置PHP-FPM 我曾尝试使用这三种方法来设置PHP-FPM,但都导致“没有指定输入文件” 我已经在Apache2.4服务器(Windows)中将PHP5.6作为一个模块运行。 我想为服务器上的所有应用程序将PHP升级到7.3.4,但其中许多应用程序目前还没有准备好。决定是让两个PHP版本同时运行 PHP5.4.60将继续作为Apache2.4模块运行 PHP 7.3.4将作为特定文件夹“d:/www/htdocs/php7/”的PHP-FPM运行 我已经使用以下工具运行了PHP-FPM:获得;未指定输入文件;尝试在Apache 2.4(Windows)下设置PHP-FPM时,php,windows,mod-proxy,apache2.4,Php,Windows,Mod Proxy,Apache2.4,我没有成功地在Apache2.4HTTP服务器的特定文件夹中设置PHP-FPM 我曾尝试使用这三种方法来设置PHP-FPM,但都导致“没有指定输入文件” 我已经在Apache2.4服务器(Windows)中将PHP5.6作为一个模块运行。 我想为服务器上的所有应用程序将PHP升级到7.3.4,但其中许多应用程序目前还没有准备好。决定是让两个PHP版本同时运行 PHP5.4.60将继续作为Apache2.4模块运行 PHP 7.3.4将作为特定文件夹“d:/www/htdocs/php7/”的PH
php-cgi -b localhost:8734
(我在上面的命令中也使用了-C选项,但结果没有改变)
httpd.conf摘录:
<VirtualHost *:80>
DocumentRoot "d:/www/htdocs/"
<Directory "d:/www/htdocs/php7/">
<Files ~ "\.(php|phtml)$">
SetHandler "proxy:fcgi://localhost:8734/"
</Files>
</Directory>
</VirtualHost>
我这里缺少什么?不,您没有运行php fpm。您运行的是php cgi,它是针对cgi的,而不是针对FastCGI的,这是两种非常不同的协议。但正如我在php.net上读到的,php-cgi.exe确实是FastCGI,而不是cgi。你一定误解了什么。php fpm是FastCGI进程管理器,通常优于CGI。php cgi是较旧的cgi sapi。我从来没有听说过php fpm在Windows上不工作。不,您没有运行过php fpm。您运行的是php cgi,它是针对cgi的,而不是针对FastCGI的,这是两种非常不同的协议。但正如我在php.net上读到的,php-cgi.exe确实是FastCGI,而不是cgi。你一定误解了什么。php fpm是FastCGI进程管理器,通常优于CGI。php cgi是较旧的cgi sapi。我从来没有听说过php fpm在Windows上不工作。
[proxy:debug] [pid 1308:tid 760] mod_proxy.c(1246): [client 10.16.32.48:49607] AH01143: Running scheme fcgi handler (attempt 0)
[proxy_ajp:debug] [pid 1308:tid 760] mod_proxy_ajp.c(739): [client 10.16.32.48:49607] AH00894: declining URL fcgi://localhost:8734/D:/www/htdocs/html/phpinfo.php
[proxy_fcgi:debug] [pid 1308:tid 760] mod_proxy_fcgi.c(1019): [client 10.16.32.48:49607] AH01076: url: fcgi://localhost:8734/D:/www/htdocs/html/phpinfo.php proxyname: (null) proxyport: 0
[proxy_fcgi:debug] [pid 1308:tid 760] mod_proxy_fcgi.c(1028): [client 10.16.32.48:49607] AH01078: serving URL fcgi://localhost:8734/D:/www/htdocs/html/phpinfo.php
[proxy:debug] [pid 1308:tid 760] proxy_util.c(2317): AH00942: FCGI: has acquired connection for (*)
[proxy:debug] [pid 1308:tid 760] proxy_util.c(2371): [client 10.16.32.48:49607] AH00944: connecting fcgi://localhost:8734/D:/www/htdocs/html/phpinfo.php to localhost:8734
[proxy:debug] [pid 1308:tid 760] proxy_util.c(2580): [client 10.16.32.48:49607] AH00947: connected to localhost:8734
[proxy:trace2] [pid 1308:tid 760] proxy_util.c(3014): FCGI: fam 2 socket created to connect to *
[proxy:debug] [pid 1308:tid 760] proxy_util.c(3046): AH02824: FCGI: connection established with 127.0.0.1:8734 (*)
... (many 'sending env var' lines) ...
[proxy_fcgi:trace8] [pid 1308:tid 760] mod_proxy_fcgi.c(680): [client 10.16.32.48:49607] .....s.. 0106000100730500
[proxy_fcgi:trace4] [pid 1308:tid 760] util_script.c(568): [client 10.16.32.48:49607] Headers from script 'phpinfo.php':
[proxy_fcgi:trace4] [pid 1308:tid 760] util_script.c(571): [client 10.16.32.48:49607] Status: 404 Not Found
[proxy_fcgi:trace4] [pid 1308:tid 760] util_script.c(571): [client 10.16.32.48:49607] X-Powered-By: PHP/7.3.4
[proxy_fcgi:trace4] [pid 1308:tid 760] util_script.c(571): [client 10.16.32.48:49607] Content-type: text/html; charset=UTF-8
[proxy_fcgi:trace8] [pid 1308:tid 760] mod_proxy_fcgi.c(680): [client 10.16.32.48:49607] FastCGI header (8 bytes)
[proxy_fcgi:trace8] [pid 1308:tid 760] mod_proxy_fcgi.c(680): [client 10.16.32.48:49607] ........ 0103000100080000
[proxy:debug] [pid 1308:tid 760] proxy_util.c(2332): AH00943: FCGI: has released connection for (*)