Page 1 of 1

Apache cant start. Port 80 in use

PostPosted: 14. May 2011 09:16
by janyk
Hello everybody.

I cant start apache
Here is my CurrentPorts result:

Image

What should i do?

(Sorry for my bad english)

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 09:32
by Sharley
Usually means there is Windows Service using port 80.

viewtopic.php?f=16&t=46656

Try a reboot it often works.

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 09:35
by janyk
Sharley wrote:Usually means there is Windows Service using port 80.

viewtopic.php?f=16&t=46656

Try a reboot it often works.


I have rebooted my PC but it still isnt working :S
And i dont have installed IIS

Image(Yeah, im dutch so my windows is dutch)

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 09:44
by Sharley
The screen cap in your first post is XAMPP's port check not CurrPorts.

Download CurrPorts from here and run it as it may tell you exactly what is using port 80:
http://www.nirsoft.net/utils/cports.html
You may be able to download a version in your own language.
http://www.nirsoft.net/utils/trans/cports_dutch.zip

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 09:48
by janyk
Sharley wrote:The screen cap in your first post is XAMPP's port check not CurrPorts.

Download CurrPorts from here and run it as it may tell you exactly what is using port 80:
http://www.nirsoft.net/utils/cports.html
You may be able to download a version in your own language.
http://www.nirsoft.net/utils/trans/cports_dutch.zip


Image

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 10:00
by Sharley
viewtopic.php?p=179735#p179735
One has the local and remote address as 0.0.0.0 and the other one simply has :: as the local and remote address
from the link I provided above if you had cared to read it as the actual offender was IIS and when properly disabled fixed the issue - Also known as World Wide Publishing.

viewtopic.php?p=180068#p180068
It was the IIS that was causing the issues. Running smooth now.

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 10:05
by janyk
Sharley wrote:http://community.apachefriends.org/f/viewtopic.php?p=179735#p179735
One has the local and remote address as 0.0.0.0 and the other one simply has :: as the local and remote address
from the link I provided above if you had cared to read it as the actual offender was IIS and when properly disabled fixed the issue - Also known as World Wide Publishing.

viewtopic.php?p=180068#p180068
It was the IIS that was causing the issues. Running smooth now.

So what do I do now? Install and uninstall IIS?

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 10:10
by Sharley
Here are the 2 methods that I am aware of:

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.


- open "inetmgr"
- expand your computer
- expand sites
- right-click the default web site
-- select stop (XP)
-- manage web site --> select stop (Vista/7)

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 10:13
by janyk
Sharley wrote:Here are the 2 methods that I am aware of:

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.


- open "inetmgr"
- expand your computer
- expand sites
- right-click the default web site
-- select stop (XP)
-- manage web site --> select stop (Vista/7)



But IIS is disabled!
Image

Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 10:19
by Sharley
...but the World Wide Publishing Windows Service may yet not be disabled unless you have already disabled in using the Service Control Manager.
viewtopic.php?p=175526#p175526

viewtopic.php?p=135356#p135356


Or may be you have some malware that has hijacked port 80 but it is not an XAMPP issue so you will have to locate what is using port 80 and disable it before you can move forward.

Problem resolved! Re: Apache cant start. Port 80 in use

PostPosted: 14. May 2011 11:07
by janyk
Thanks for your help,it was the
Web Deployment Agent Service (MsDepSvc) service

I have disabled it and now the port is free
Thanks for your help again!

Re: Apache cant start. Port 80 in use

PostPosted: 23. September 2011 22:11
by GlennC
Yes, this was my culprit.

I downloaded V3 of the control panel, as instructed by the experts here at Apache Friends, and it was very helpful. The Netstat showed that "system" was using port 80, but didn't show exactly what that was.

I went to the task manager and showed tasks for "All Users". I started killing process that I though were safe and likely to tie up port 80. Then I'd check back with Netstat to see if it's free. It was the "Web Deployment Agent Service", MSDepSvc.exe.

For work purposes, I have to use IIS frequently. So instead of turning off the service, I use IIS Manager to stop my local instance. Apparently, this process hangs on.

Good job on Control Panel V3, guys!

== XAMPP Win32 1.7.7
== XAMP Control Panel v3.0.2
== Windows 7 PC

Re: Apache cant start. Port 80 in use

PostPosted: 23. September 2011 22:21
by JonB
For work purposes, I have to use IIS frequently. So instead of turning off the service, I use IIS Manager to stop my local instance.


Good Idea -
8)