Recently changed a new server, because the memory is 8G, so changed Windows Server 2008 R2 This system, although a little strange, but familiar with the feeling performance is very good, but after configuring the PHP environment but found the problem, access to HTML fast, and visit the PHP page will be cotton for a few seconds, as if the response is very slow appearance, excluding the bandwidth factor, in Baidu search a lap, unexpectedly solved, and now the method is reproduced to everyone, in fact, the solution is very simple oh.
IIS7.5 Web site access to PHP slow response reason
The reason is that PHP5.3 above supports the IPV6 protocol, but everyone's server does not use IPV6, when access to PHP will be connected to the MySQL address for localhost, the system will be connected with the IPV6, but there is no IPv6 so to wait until the IPV6 failure and then turn to IPv4 so around a lap speed of course slow.
On the internet said the god horse disable IPv6 tried no effect, then use the Microsoft Official IPV6 Disable tool still so, the following posted the correct solution my method does not necessarily apply to you but you might as well try
Because I am in the server when using ping localhost, I feel very strange out of the IP is actually ":: 1"
IIS7.5 Web site access PHP response to slow resolution
Use the software such as Notepad or EmEditor to open the Hosts file under C:\Windows\System32\drivers\etc.
Found it:
# 127.0.0.1 localhost
Modified to:
127.0.0.1 localhost
Save the Hosts file and try again.