子进程php-cgi.exe以0结束

时间:2015-04-09 11:09:30

标签: php nginx fastcgi

我在Windows中使用PHP启动Nginx。 Nginx使用FastCGI连接到PHP。一切正常,但有时php-cgi.exe崩溃,不起作用。 Windows日志是:

  

子进程[3952 - D:\ nginx \ php \ php-cgi.exe -b127.0.0.1:9000 -cD:\ nginx \ php \ php.ini]以0结束

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:-1)

set PHP_FCGI_CHILDREN=0
set PHP_FCGI_MAX_REQUESTS=5000
and run pgp-cgi with these environment values.