For some reason my localhost Apache server is taking forever to return pages to the browser. I'm talking well over a minute of loading time.

I have no idea why this should be. I haven't used the computer for a few weeks but it was working perfectly fine when I last did. Any suggestions as to what I can check?

link|improve this question

75% accept rate
1  
Are these static pages, scripted pages? Have you checked the logs for Apache? – Chealion Aug 6 '10 at 18:07
PHP scripts. I've got phpinfo() to run successfully (eventually) so figured Apache was kind of ok. – musoNic80 Aug 6 '10 at 18:12
@musoNic80: So static pages don't have this problem? – Lèse majesté Apr 22 at 4:21
feedback

2 Answers

check out your hosts settings, stuff like this is usually a dns issue. also try 127.0.0.1 instead of the localhost string. i know freebsd considers them different

link|improve this answer
This maybe a really stupid thing to say, but... what do you mean "check out your hosts settings'? Where are they, what am I looking for? – musoNic80 Aug 6 '10 at 18:13
check out /etc/hosts and make sure you dont have anything funky going on there. if you have a dns entry add it and your local ip address besides it – user43856 Aug 6 '10 at 21:30
feedback

10.4 is no more supported by Jobs & Co You need 10.5 (Buy a CD in some outlet or search around the net for image) (works even better even on 1G machine)

You can check what delays loading pages using PageSpeed or YSlow!

Is empty page slow? Is phpinfo() alone slow? Is it slow when ran from command line? Do you have windows-based DNS anywhere around?

Having adjusted hosts files - is it just as slow? Anything in apache error log about PHP running too long?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.