Apache mod_proxy_fcgi and PHP-FPM (php-cgi.exe) issue (No input file specified.) on Windows

后端 未结 5 1945
别跟我提以往
别跟我提以往 2021-02-20 00:22

The following is PHP-FPM (PHP 5.5)

php-cgi.exe -b 127.0.0.1:9000

The following is mod_proxy_fcgi (Apache 2.4)

The first way

<         


        
5条回答
  •  别跟我提以往
    2021-02-20 00:29

    Maybe you didn't get me right.

    Before the fix it was: proxy:balancer://\c:\fileName.php

    After the fix it is: \c:\fileName.php

    Which are both invalid file names in Windows, while thinking Linux there is no drive letter there so it becomes \fileName.php which is valid. The fix would be to remove the starting slash and recompile.

提交回复
热议问题