Home >Backend Development >PHP Tutorial >The solution process for wamp server to access php is very slow, wamp server to access php_PHP tutorial
wamp has obviously been much slower than before in the past two days. I restarted it and it still worked at first. Later, restarting it didn't work, so I checked the cause online and shared it with friends who needed it.
Possible reason 1. The apache access.log file is too large (I used this to solve the problem)
Solution: clear the log file; log path: wampbinapacheApache2.4.4logsaccess.log
================================================== =============
Possible reason 2. hosts file (I read it online, I have not tried it because method 1 has solved my problem);
The cause of the problem: hosts file, which records commonly used domain names and access URLs. When the browser inputs, it first checks the hosts file. If there is one, access it according to the hosts file IP. If there is no one, it requests the DNS server. DNS Access after server parsing. In order to restrict Adobe registration, the Adobe registration IP was previously restricted after the hosts file, and was set to 0.0.0.0. There were many filters, which resulted in slow local access.
Solution: Delete the hosts filter (deleting the filter may cause permission issues, back up first, then copy to other places, such as the desktop, open and modify, save as txt format, then rename, delete .txt, and then copy to etc folder)
The above is the entire content of this article, I hope you all like it.