Configure Apache httpd.conf files
General server 2G memory or 4G memory, Threadsperchild 200~300,maxrequestsperchild 1000~3000
I have the following settings in the httpd.conf:
The code is as follows |
Copy Code |
KeepAlive on Maxkeepaliverequests 50 KeepAliveTimeout 5 Threadsperchild 100 Maxrequestsperchild 100 Win32disableacceptex |
For PHP scripts, it is helpful to set this parameter to a smaller number, to avoid the constant increase in memory used by the program, which puts pressure on Apache:
This parameter releases memory periodically, because PHP automatically frees up the only resources (memory) after the script has finished executing.
Setting Up Server Configuration
1. Network Places-> Local Area Connection-> Properties->internet Protocol (TCP/IP)-> Properties-> Advanced->wins Label-> Remove the tick before the LMHOSTS query is enabled.
2. Control Panel->windows Firewall-> Advanced tab-> Local Connection Settings-> Service tab to check the secure Web server (HTTPS).