views:

837

answers:

3

I've got my windows pc (localhost) running xampp, it loads the pages sometimes really quick or sometimes really slow...

So I figured and searched and was recommended to get wamp. So I got that and installed it, still... the pages load so damn slowly. No heavy cpu load or anything, all my ports are open too.

Any ideas?

A: 

Try to add this lines to hosts file:

127.0.0.1 127.0.0.1

127.0.0.1 localhost

and comment this line:

# ::1 localhost

You can find hosts file under: C:\Windows\System32\drivers\etc

Aziz
A: 

Very slow is a very general problem, but it happened for me when I first installed IIS to run alongside apache, and also after I did a windows update (config was reset?)

Anyhow, what happened was that IIS started conflicting with Apache on port 443 (SSL) and so I had to use the follow command to disable SSL on IIS so that Apache would run fast again:

c:\inetpub\adminscripts\>adsutil set w3svc/1/securebindings "::"

Hope this helps.

edit: I also found that if I had ColdFusion installed and the service timed out during startup apache would run really slow. If you have ColdFusion installed, run services.msc and check to see if the main service is running. If that works, try adjusting your startup time ( http://www.ahphosting.net/support/Customer/KBArticle.aspx?articleid=23 ) so it will start automatically on the next reboot.

cwd
^na that wasn't it, thank you though!
Michael
A: 

Oddly, the IP hosts/address change did the trick to me.

I'm on XP, and have had "127.0.0.1 localhost" in my hosts file forever.

Recently (maybe after some Windows updates, maybe after adding other application directories to my xampp htdocs, maybe after installing something else that conflicts with those ports?) pages - even simple HTML pages - started loading extremely slowly.

Merely commenting out the "127.0.0.1 localhost" line in my hosts file seems to have done the trick - now pages are loading consistently quickly.

Matt Vaughan