Installing XAMPP on Windows 7
I just switched over to using Windows 7 with a full development setup including IIS 7 and Sql Server 2008 (including reporting services). I also use Apache to edit a local copy of my blog and websites. I decided to let apache run on the default port 80. In order to do this, I installed XAMPP Lite, which was pretty straightforward, but getting it running was not. Here’s what got it working for me:
Step 1: Download and install XAMPP:
Download and install one of the XAMPP exe files from here:
Apache Friends – XAMPP For Windows
You can use XAMPP or XAMPP Lite, whichever suits your needs, but be sure to get the EXE rather than the ZIP file. I used XAMPP Lite version 1.7.2 for this installation.
Double-click the installer and let it run. I chose to let it install on the default C: destination folder:
I’ve read that it can’t be run on the same partition as the operating system, that it has to be run as administrator and in compatibility mode, but I didn’t find any of that to be true. Windows 7 sometimes pops up a message at the end of the install saying it didn’t install properly. I just hit the “The program installed correctly” button.
Step 2: Change the port that IIS is running on:
By default, IIS and Sql Server use port 80, so first you have to move IIS to a new port. Click on the Start button and in the “Search programs and files” box, type in “iis”, and hit Enter. This will start up the Internet Information Services Manager.
Under “Connections” on the left, expand the entry for your PC name, then Sites and click on Default Web Site under Sites (this may have a different name if you have named your default site):
Now with the Default Web Site selected, click on Bindings on the right side of the window. In the bindings window, click on the first entry, hit the edit button and enter the new port you want IIS to run on. (I chose 8080).
Click “Ok”, “Close”, and then on the right side of the Internet Information Services Manager, under Manage Web Site, click on Restart. Close the Internet Information Services Manager. You can verify that IIS is now running on port 8080 by opening a browser and typing http:/localhost:8080 into the address bar:
Step 3: Moving Sql Server Reporting Services:
Now you can try running the XXAMP Control Panel and running Apache. In my case, it appeared to start, but then would stop immediately. In order to figure out what else is running on port 80, you need to run the Command Prompt as an administrator.
Click on the Start button and go to All Program -> Accessories -> Command Prompt. Right click on Command Prompt and choose Run As Administrator.
Once the command prompt opens, type in “netsh http show servicestate” (without the quotes). This will show you what is running on what ports on the system. In my case, it was REPORTS and
REPORTSERVER that were on port 80:
These are both SQL Server Reporting Services, which I want to use, but I’ll also move to port 8080. To configure the Reporting Services, launch the Reporting Services Configuration Manager. This is located under Start -> All Programs -> Microsoft Sql Server 2008 -> Configuration Tools:
Click on Web Service URL in the left panel and change the TCP Port to 8080.
Now choose Report Manager Url from the left panel and Click Advanced.
Change the TCP Port to 8080 and click OK.
Close out the Reporting Services Configuration Manager.
Now if you open the XAMPP Control panel and run Apache, it should stay running. If it doesn’t work at this point, reboot the system and try again.

Now you can verify that apache is working by opening a browser and typing http://localhost into the address bar:













One extra thing I needed to do in my case was to restart the application pool (in addition to restarting the website at the end of step 2)
Awesome. So glad I stumbled upon this page. Worked for me as indicated and thanks for the screen shots as well!
This helped me as well. I couldn’t get Apache started. Turns out I needed to restart some things. Thanks for getting the ball rolling!
I got problem.
Im using and Xampp 1.7.3 .windows 7 64 bit with SQL server 2005.
On starting apache and mysql through the xampp control panel it says
“Busy..Apache service started
Busy…Mysql service started”
On visiting localhost or 127.0.0.1 i got “cannot display the webpage” error.Please help me..I preparing for my exam.
If the XAMPP service is failing to start, I would suggest looking in the log file to see if there are any clues there. The default location of the error log file is C:\xampp\apache\logs\error.log.
thank you very much,your post has been most useful and helpful.
I have Windows 7 home premium, but with serch box i cant find Internet Information Services Manager, what i shoud to do ? Thanks, for answer
IIS is not installed by default on Windows 7. Take a look here to see how to install it:
http://technet.microsoft.com/en-us/library/cc731911.aspx
I am ready to attempt this install on a new laptop whose main purpose is for website development. I am encouraged by your super tutorial. Q: On the Microsoft IIS Install Page, it asks if “you need additional IIS features, such as Application Development Features or Web Management Tools.” My expertise is XHTML/CSS, not IIS, so forgive if this Q is simple, but do I need these features for XAMPP? (Their names look relevant…). Thank you kindly.
Hi Patty,
XAMPP is really an alternative to IIS (hosting sites in Apache instead of IIS). If you plan to do all of your deployment for hosts that are running Apache, then you don’t need additional IIS features. If you also want to develop sites that will be hosted on IIS, then you may need them.