I am using WAMP (localhost) on Windows 7.
When I am running my localhost it takes more than 1 minute to load the page. There are no queries or database connectivity. If it's just an HTML page, it also takes the same time, and if the Internet is connected it works normally. If Internet is connected it works perfectly. When the Internet is not available it takes more than 1 minutes to load a simple page.
How can I fix this?
The solution that worked for me was to disable the cgi_module. Use one of these methods:
(Method 1) Left click on WAMP > Apache > Apache Modules > uncheck "cgi_module"
(Method 2) Edit httpd.conf and disable the loading of the CGI module by commenting this line:
LoadModule cgi_module modules/mod_cgi.so
Commenting would be just adding a # in front, like this:
#LoadModule cgi_module modules/mod_cgi.so
Restart the Apache service and you should be good to go.