Windows Server 2008 R2 Web site access PHP Slow-response Solution _win Server

Source: Internet
Author: User

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.

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.