Open Qsppl opened 2 weeks ago
How do you run php-cgi-spawner
?
I use this for ages with no errors:
set PHP_FCGI_MAX_REQUESTS=0
php-cgi-spawner.exe "php\php-cgi.exe -c php.ini" 9001 4 128
Over all these years php-cgi
itself has managed to embed its own internal spawner, maybe you do not need to use php-cgi-spawner
at all and use php-cgi
for example like this:
set PHP_FCGI_MAX_REQUESTS=0
set PHP_FCGI_CHILDREN=4
cd php
start php-cgi.exe -c php.ini -b 9001
Also, regarding your question:
Where can I view errors encountered in the php-cgi-spawner.exe?
There is no error log for php-cgi-spawner
as it only performs very basic tasks.
When processing a large number of requests, somewhere between NGinx and a PHP application, I get an error that I cannot find.
The NGinx access log simply says "upstream_status is 502":
If you look at what is located at the "upstream_adress" specified in the log, then there is a spawner:
The target php file was not launched (there is logging on the first line, I would have seen it).
I think that the error occurred in the spawner, but I can’t find if this application has logging and how to configure it.