Alex Rivera | Logout

Apache service failing ("BUSY") when using port 80

Asked 2011-04-29T12:46:19.733
17

How can I configure my Apache server to run on port 80? My Apache service is failing when using Port 80; it says BUSY.

When I change the port in config to 85, Apache works but this requires maunally entering 85 in the address bar every time with localhost.

I have tried to find out which program is using port 80 but I cannot come up with anything. I first entered netstat -n -a -o -p TCP in cmd and I came up with this information

Local Address 0.0.0.0:80   State: Listening    PID: 4

Then I entered tasklist in cmd trying to figure out which service is using this port. Looks like "System" is on PID 4. I have configured Skype to not use port 80 without any luck. I have Microsoft WebMatrix installed on Windows 7 and I even deleted IIS 7.5 Server Express to free this port but all to no avail.

Can you guys please help me out? I am using Windows 7 and XAMPP.

Edit
Report

2 Answers

5

You can also just change the port the Apache Web Server is using in the httpd.conf file.

In a Windows OS command prompt I use;

netstat -an

to see what services are already running, and what ports they are using, then just pick a port number that's not being used. Much simpler. That's for my Dev environment. On an actual server or in the cloud, I would run the Apache Web Server without conflicts and just shutdown anything else that happens to be using port 80.

answered 2012-05-26T22:25:56.583
2

Oh, thank you a thousand times. I've been wrestling all day with getting port 80 free. Tried everything that I found on the chat rooms, forums, including the regex edit above, and still there was:

netstat -ano -p tcp | findstr LISTENING

TCP    0.0.0.0:80             0.0.0.0                  LISTENING       4
TCP    0.0.0.0:445            0.0.0.0                  LISTENING       4  etc.

Now port 80 has disappeared from the display. What a relief!

answered 2012-01-08T19:51:38.640

Your Answer