Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a local copy of my website running on IIS 8 (this is in the Windows 8 RP) with the latest version of PHP with FastCGI, and a complete MySQL install (I selected the lowest memory using option in the MySQL set up, if that matters). For some reason, I'm getting very long load times for my site.

some debugging info that might help:

  • when using the method described in to time the execution of my page, from the first , the PHP compilation time for my homepg.php document is 7.1525573730469E-6 seconds, which I take to mean less than a second according to
  • the load time for that homepg.php document (according to IE's network tab, and chrome's networking tab) is about six seconds, and then another 20 seconds for an API page (that's also part of the same IIS website), but whose "initiator" is XMLHttpRequest (indicating that it was sent from a jQuery $.GET), and is actually a file about 7 kB smaller than homepg.php, but homepg.php's initiator is "refresh," so is it at all possible that that could be the problem?
  • this occurs with or without the dynamic/static compression in IIS.
  • it's not a problem with my network connection, since I've tried it on multiple wifi routers and ISPs
  • it's also not a problem with like DNS or anything, since the slowdown occurs when I use and all of the custom domains I've set in the hosts file.

My apologies if this is a bit vague, but since I have near-0 experience in this I wasn't exactly sure what would be most helpful in trouble shooting :\ If you need any more info, just ask :)



share|improve this question
up vote 1 down vote accepted

It turned out to be a problem with the way I was connecting to MySQL - I needed to replace "localhost" with "" as was recommended in many other threads (but I kind of dismissed it as not gonna work for me when I saw those solutions, so I should have tried that before posting here)

So, if you're server is taking forever when doing anything with MySQL, try changing "localhost" (or other hostnames) to "" (or other IP addresses) :D

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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