When the nginxw.php runtime environment is configured in the Windows Server, will the server automatically exit the php-cgi.exe process during runtime? How do you configure the server? When the nginxw.php runtime environment is configured in the Windows Server, will the server automatically exit the php-cgi.exe process during runtime? How do you configure the server?
Reply content:
Win32w.nginx?php automatically drops php-cgi.exe
RunHiddenConsole E:/wnmp/php5/php-cgi.exe-B 127.0.0.1: 9000-c "E:/wnmp/php5/php. ini"
Step 1: Download xxfpm and the address will not be provided. There are a lot to search Baidu.
Downloaded
Step 2: Create a new text and write the following code.
RunHiddenConsole.exe H:/Server_Core/xxfpm/bin/xxfpm.exe "H:/Server_Core/PHP/php-cgi.exe -c H:/Server_Core/PHP/php.ini" -n 2 -i 127.0.0.1 -p 9000
Explanation:
Keep and php-cgi.bat under your PHP root directory
In the authorization code, 2 refers to the creation of two php-cgi.exe processes. the actual situation depends on your requirements. However, it is not recommended to start one process. The specific cause will be updated in a later blog. In addition, we will talk about server load balancer in the future. at that time, 2 will be changed to 1.
Code 9000 above indicates that PHP transfers data through Port 9000
Tip: The slash in the code must use "/" instead of "\". replace the path in the code with your actual configuration path, Cloud.
OK, save, rename the TXT text to php-cgi.bat, save, and then click, haha, the process runs stably...
Above is nginx-php-cgi.exe process automatically exited content, more relevant content please pay attention to PHP Chinese network (www.php1.cn )!