Page 1 of 1

Can't install XAMPP on Vista. Port 80 already in use

PostPosted: 22. February 2008 22:00
by joejoefla
Hi everyone,

I currently run Vista Home Premium with no other webserver software instaleld on the machie. I have the firewall completely off and run ESET NOD32 antivirus.

What's happening now is when I try to install xampp everything goes fine until apache tries to install itself as a service. This is when I get an error stating "Port 80 or 443 is already in use. Installation failed!" I'm trying to host a webserver locally and view the webpage locally by accessing http://localhost and http://127.0.0.1

What's strange is I tried to scan my loopback and didn't find port 80 open. I haven't tried to install this on XP but I have high certainty that it's something with my PC and Vista.

Thanks for the help all.

PostPosted: 23. February 2008 00:05
by Izzy
When Logged into Vista as an administrator, right click on .\xampp\xampp-portcheck.exe select to 'run as administrator' and this little tool will tell you what is using the ports that XAMPP needs exclusively - they should be Free or occupied by one of XAMPP's modules.

The culprits are usually IIS (a Windows web server running by default) and or Skype and possibly some other IM software.

You will need to configure this other software to use alternative ports or prevent them from loading as a service in the first place, or else XAMPP's modules will not be able to function as intended.

PostPosted: 27. February 2008 20:47
by kbishop
Or you can go into DOS and do a netstat -ano and hit enter. Then scroll up and see what PID # is using port 80. Then, open up your Task Manager (Ctl, Alt, Dlt) and go to the Services tab. Compare your PID # from DOS to that in the Services tab to figure out which is occuring. Mine also was the Default Web Site that I had to stop.

Acutally, now that I think about it, my default web site didn't show up in Services either. To find out, right click Computer and go to Manage. Once in there, go down to Services and Applications and expand Internet Information Services (IIS) Manager. Expand that until you see the Web Sites folder. Click on that and it will tell you if Default Web Site is running or not. If it's running, right click on it and hit stop. Hope this helps!!!

Re: Can't install XAMPP on Vista. Port 80 already in use

PostPosted: 24. August 2009 01:00
by mdgnavyf
I've spent hours on this. Just bought new Toshiba Laptop.

TURN OFF SKYPE !!!!!!!!!!!!!!!!!!!

Re: Can't install XAMPP on Vista. Port 80 already in use

PostPosted: 24. August 2009 01:16
by Izzy
mdgnavyf wrote:I've spent hours on this. Just bought new Toshiba Laptop.

TURN OFF SKYPE !!!!!!!!!!!!!!!!!!!
No need to disable Skype just change the ports that it uses.

Skype uses ports 80 and 443 by default.

You can alter that behavior by going to:
Tools\Options\Connection

Untick
Use port 80 and 443 as alternative for incoming connections

You will have to decide a different port to use for incoming connections before Skype lets you save your changes.

Use ports between 49152 through 65535.


Some others have had success by starting Apache before starting Skype then Skype has to use ports other than 80/443.

Re: Can't install XAMPP on Vista. Port 80 already in use

PostPosted: 23. December 2010 14:22
by kekkaishi
if u have sql server 2008 r2 installed, sql server reporting service may use port 80. u might first wanna stop it through service manager.

Re: Can't install XAMPP on Vista. Port 80 already in use

PostPosted: 15. April 2011 16:38
by cluesmayhem
I've got solution from website http://lia1488.wordpress.com/2009/10/08/menjalankan-iis-dan-xampp-di-windows-7-sekaligus/and it worked (thanks to aulia rahman)
Basically to do is like this:
1. locate httpd.conf, example is D:\xampp\apache\conf\httpd.conf
A. look for words “Listen 80″ and change into “Listen 8080″
B. look for words “ServerName localhost:80″ and change into “ServerName localhost:8080″
C. Save the file
2. locate httpd-ssl.conf, example is D:\xampp\apache\conf\extra\httpd-ssl.conf
A. look for words ““Listen 443″ and change into ““Listen 4499″
B. look for words “<VirtualHost _default_:443>″ and change into “<VirtualHost _default_:4499>″
C. look for words “ServerName localhost:443″ and change into “ServerName localhost:4499″
D. Save the file
3. then start the XAMPP control panel, should be worked,
4. if you want to access localhost, the new link is localhost:8080/, example you want open phpmyadmin, then http://localhost:8080/phpmyadmin/

Re: Can't install XAMPP on Vista. Port 80 already in use

PostPosted: 16. April 2011 02:58
by Sharley
That solution is posted in these forums hundreds of times and is found by Advanced forum searching.

That solution is fine if you always want to add the port number at the end of the domain name, but the correct solution is to take control of the situation by locating what is using the ports that XAMPP requires for it's servers and then disable the conflicting servers (Listeners) so you don't have this conflict.

You can use the built in xampp-portcheck.exe file in older versions or use this little free non install app. currports from here. which is the backbone of the previous versions port check utility:
http://www.nirsoft.net/utils/cports.html

However if you have ascertained what the conflicting listener is and have decide you simply can't be changing it's ports then by all means have the inconvenience associated with having to add the port number to the URI that Apache will read.

BTW port 8080 will conflict with Apache Tomcat if you want to be able to use this XAMPP Java feature.