Page 1 of 1

port 80 issues after previous installation [SOLVED]

PostPosted: 09. May 2011 07:34
by BassinJason
I have only recently began coding in php and was using xampp to run apache for a few a months.. Recently the apache stopped running.. I did not check the log file as I was not aware of it's existence at the time. I have uninstalled and reinstalled a few times and kept coming up with either port 80 or 443 being already in use. I ran currports to check which it was and found 3 open port 80s. The weird thing is that all three open port 80s had the local port name of http. I was able to close one but am unable to close the other two. These two list their state as listening, not all sure what that means. Naturally, trying to reinstall again produced the same error message. So now I desperately turning towards the community for a little assistance. Any all advice is appreciated... ps I do not use skype and I do not believe any other application is causing the issue. Very confused.. Please Help.

Re: port 80 issues after previous succesful installation

PostPosted: 09. May 2011 07:45
by Sharley
How exactly did you uninstall XAMPP as it would seem that perhaps the Apache Windows service may not have been uninstalled first.

It would be advisable to uninstall correctly and do a fresh install by following this procedure.

Start the XAMPP Control Panel.
Make sure there are no ticks in any of the Svc check boxes or the service module column in XCPv3.
Stop all XAMPP components.
Press 'Exit' or 'Quit' in the XAMPP Control Panel.
Delete the xampp folder completely after backing up your own files.
Reboot as it often helps clean things up.

Try and install again using my preferred method instructions below for the ZIP or 7zip version.

Download the ZIP or 7zip version of XAMPP.
Extract (drag) the xampp folder to the C:\ drive or the root of any drive or partition like D:\, E:\, etc.
Run the C:\xampp\setup_xampp.bat file (this sets the correct paths for you).
Open the XAMPP Control Panel version 3 (xampp-control-3-beta.exe) found in the xampp folder and start Apache and MySQL (do not tick any service module boxes)
When both Apache and MySQL are running type http://localhost/ select your language and exercise all the demos in the left menu frame.

You should now be able to proceed and enjoy XAMPP. :)

Re: port 80 issues after previous succesful installation

PostPosted: 09. May 2011 10:44
by BassinJason
I was initially using the installer file for installation and simply uninstalling it as an application. After attempting the process you suggested, which I did prefer, I was able to start apache but within a second or two it quit on me.. As far as I can tell it has to be due to the many port 80s that are open. I am unable to close them using currports. Could this problem be a virus of some sort. I have checked for viruses but didn't find any, but you never really know with viruses. Why are there more than one port 80s open? There are 2 open as port 80 with system as the process name, 4 as the process ID, TCP protocol, http as the local port name. One has the local and remote address as and the other one simply has :: as the local and remote address. I don't know anything about this port stuff but as far as I can tell the ports are probably the only problem. What should I do? Help please.

Re: port 80 issues after previous succesful installation

PostPosted: 09. May 2011 11:32
by Sharley
There is something using port 80 and you will not be able to move forward until you locate the culprit and disable it - 'system' may well be IIS, see below.

Read the \xampp\apache\logs\error.log file just after Apache fails to start.
(If Apache has not yet been able to start after installation then there may not be any entries in the error.log file).

You don't use Skype but are you running any other programs that may have access to the Internet, also is World Wide Publishing AKA IIS the Windows default web server disabled?

If not disabled go to the link in this post:
Or try this:
To disable IIS go to
Start>Control Panel>Programs and Features
on the leftmost side you will find an option
Turn Windows features on or off
click on it and uncheck
Internet Information Services
click OK
and then restart your computer.

Make sure that you have temporarily disabled your firewall and ZoneAlarm etc and try again to start Apache.

Also you could try this to remove any Sticking Windows Apache services that may be left in the registry:
Click Exit the XAMPP Control Panel.

Next open a command prompt like so
Click start
Click on Run...
Type: cmd.exe
Click OK

To remove old or sticking Apache services.
sc delete apache2.2
Click OK

If there are no Apache services installed in the registry then you should see:
"The specified service does not exist as an installed service."

Close the command console.

If the sc command found and deleted the service then start the XAMPP Control Panel again and try and start Apache.

Let me know if any of the above helped as with this issue I am as much in the dark as you and can only suggest some things to try - you do keep on top of your virus checking routine?.

Re: port 80 issues after previous succesful installation

PostPosted: 12. May 2011 07:14
by hehfest
I know for a fact that apache will not work if your skype application is running. I have skype and must close the app out. Not sure if this is the problem or not.

Re: port 80 issues after previous succesful installation

PostPosted: 12. May 2011 07:17
by Sharley
You don't need to close Skype out, either start Apache before Skype or configure Skype to use alternative ports.

BTW the OP says in his first post that he does not use Skype.
BassinJason wrote:ps I do not use skype...

Re: port 80 issues after previous succesful installation

PostPosted: 13. May 2011 01:06
by BassinJason
Thank you Sharley..

It was the IIS that was causing the issues. Running smooth now.