Saturday, December 17, 2011

Apache won't run after installing XAMPP on Windows 7

So you installed XAMPP on your windows 7 pc and Apache won't run. Well you're not alone.  To resolve the issue, simply click the "Svc" checkbox next to Apache in the XAMPP Control Panel Application (see below). After you check it, click "Yes" if Windows asks if you want to allow the program to make changes to your computer. Then restart and Apache should be started.  You will then be able to start and stop the service. 


The reason you have to do this is because Windows 7 has a service called http.sys which starts automatically and uses port 80. Running Apache as an automatic service causes apache to start before the http.sys service. This allows apache to get port 80 before http.sys starts.  I found the solution here.

No comments:

Post a Comment