PHP-cgi stops working randomly without error log

I’m using nginx with (WT-NMP – portable mysql nginx php app.). Everything is working perfectly except php-cgi, it is stopping randomly and i have to start it again, in fact i realized that if i add to post my website quickly (in wordpress), it is definitely stopping. But sometimes it is stopping without for no reason, maybe there is a reason but i cant see because no error shows in errorlogs.

I searched on the internet and I found something about my problem but I couldn’t use these methods on my windows server.

Read More

The solution I found: SET PHP_FCGI_MAX_REQUESTS=0 to the script that starts php-cgi.exe

@ECHO OFF
ECHO Starting PHP FastCGI...
SET PHP_FCGI_MAX_REQUESTS=0
SET PATH="D:Program Filesphp;%PATH%"
"C:Program Filesphpphp-cgi.exe" -b 127.0.0.1:9000 -c "C:Program Filesphpphp.ini"

Any idea about my problem? or any idea how to use this codes on my windows server. I searched for windows and found only one solution, it was about the IIS.

The proccess: adding PHP_FCGI_MAX_REQUESTS=0 to environment variables.

Related posts

Leave a Reply

1 comment