The nginx-php-cgi.exe process exits automatically

Source: Internet
Author: User
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 )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.