Command Line to execute the php-cgi-b127.0.0.1: 9000 this execution, if the pressure is a little larger, then it is 500 error, there is no automatic restart method, alternatively, you can execute php-cgi-B 127.0.0.1: 9000 in the command line based on the method of Automatically Adjusting the php-cgi process based on the load. If the stress is too high, the system crashes and the Error 500 is returned, is there a way to automatically restart or adjust the php-cgi process based on the load?
Reply content:
Execute php-cgi-B 127.0.0.1: 9000 IN THE COMMAND LINE. If the stress is too high, the system crashes and the Error 500 occurs. Is there a way to restart automatically, or you can automatically adjust the php-cgi process according to the load.
We recommend that you use an integrated environment. I use UPUPW NGINX.
Alternative solutions:
Apache2 mod-fcgid: http://php.net/manual/zh/install.windows.apache2.php (see "run PHP In FastCGI mode)
FastCGI for IIS: http://php.net/manual/zh/install.windows.iis7.php
Note: in php. ini configuration, cgi. fix_pathinfo must be 0, otherwise there will be a vulnerability: https://segmentfault.com/q/1010000002927290