Skip to content

Commit 1b4fac0

Browse files
committed
Fixed losing php-cgi after 500 requests by setting PHP_FCGI_MAX_REQUESTS environment variable to 0 (unlimited)
1 parent c1424d7 commit 1b4fac0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

restart_php.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@IF [%1] == [] GOTO usage
22

33
@taskkill /im php-cgi.exe /F > NUL
4+
@set PHP_FCGI_MAX_REQUESTS=0
45
@start "PHP %1 FastCGI" /B "%1\php-cgi.exe" -b localhost:9000
56
@echo Started PHP %1 FastCGI on port 9000.
67

0 commit comments

Comments
 (0)