start /b php-cgi -c .\php-debug.ini -b 127.0.0.1:521 start /b LightTPD.exe
有一次PHP崩溃,我得到503错误,直到我再次启动它。 我想configurationlighttpd来pipe理PHP实例,所以它可以重新启动PHP。 我通过添加bin-path修改我的lighttpdconfiguration。
server.modules = ( "mod_access", "mod_accesslog", "mod_rewrite", "mod_redirect", "mod_evhost", "mod_fastcgi", "mod_status" ) fastcgi.server = ( ".php" => ( "localhost" => ( "host" => "127.0.0.1", "port" => 521, "bin-path" => "C:\PHP\php-cgi.exe", "broken-scriptfilename" => "enable" ) ) )
当我启动lighttpd,我在我的错误日志中看到以下内容 – 无论是否运行PHP都没关系。
2013-01-26 16:23:20: (log.c.166) server started 2013-01-26 16:23:20: (mod_fastcgi.c.1103) the fastcgi-backend C:\PHP\php-cgi.exe failed to start: 2013-01-26 16:23:20: (mod_fastcgi.c.1107) child exited with status 0 C:\PHP\php-cgi.exe 2013-01-26 16:23:20: (mod_fastcgi.c.1110) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2013-01-26 16:23:20: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed. 2013-01-26 16:23:20: (server.c.982) Configuration of plugins failed. Going down.
我已经尝试通过添加/删除/编辑参数玩bin-path -c .\php-debug.ini -b 127.0.0.1:521我通常传递给PHP。
有什么build议?