headermask image

header image

Apache Headache: “no listening sockets available”

Update 1: I was unable to configure MySQL. Reason: It was installed in C:\(blah-blah) and , probably, do not have write rights in the directory. Installing it to D:\(bigBlah) solved the issue. Duh!

Update 2: I see a fairly good traffic coming here searching for the same problem. So, in case you are in a hurry, this is mostly a summary to inform you that in all probability, YOU HAVE SOME SERVICE RUNNING ON PORT 80. Check out using TCPView (if you are on windows). Hope that helps. :)

I am currently working on an official XSS (Cross Site Scripting) presentation. I needed some screenshots of alert boxes and defaced site. So I installed Apache, configured it to work with PHP. (If you need help in installing and configuring MySQL, Apache and PHP, look here).

But this was day before yesterday. Yesterday, I needed to make a quick manipulation to the script, but… Apache won’t start. The error I was getting (using eventvwr) was:

>>> (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 .

It’s pretty apparent that some other jerk was sitting and listening at port 80. Yesterday, however, was too hectic to discover the rat. Today, I ran TCPView (thanks to Shruthi for suggesting) to discover that inetinfo.exe was the ra**al. TCPView is one of the nicest tools created by the guys at SysInternals, which was later acquired by Microsoft. Rats!

Anyways, the fun part was stopping the service. I couldn’t kill it. Neither using TCPView, nor Task Manager. It would again span back to life :)

So, finally I opened services.msc to stop the IIS server and change the automatic start mode to manual mode. Heck! I should have disabled… or even better, deleted the scoundrel. :D

So, if you have the same problem, you are in all probability in office right now and hence may not be aware what services are running. Use TCPView to discover all those unnecessary network services. It’s a great tool. Further, you might also want to switch some stupid services from automatic start mode to manual (or disable :P ). Use Services.msc.

If you liked my post, feel free to subscribe to my rss feeds

5 Comments so far (Add 1 more)

  1. I had the same prob in my company I was developing the SandPress theme on the sly ;) but I used to stop IIS manually and start it up when needed. Also you can configure apache to run on a different port but it doesn’t work for me in the company since they have blocked all other ports. By the way I could fig the decoding with .net :( maybe when I have more time I’ll fig it out.

    1. Arpit Jacob on August 10th, 2007 at 7:54 pm
  2. I should have re-updated the post that even changing to manual didn’t work, so I disabled it. heehee. Strange, but that worked :-/

    By the way I could fig the decoding with .net :( maybe when I have more time I’ll fig it out.
    That’s okay, take your time. :)

    2. Bipin 3~ Upadhyay on August 11th, 2007 at 12:30 am
  3. There’s also a problem with Skype. It listens to :80 as an alternative port for connections.

    3. Oleg Melnychuk on March 29th, 2008 at 12:41 pm
  4. Another cheap trick to find applications that are listening on port 80 (or any other port) is to use netstat. The windows version of netstat is slightly limited but will do quite well for our purposes

    C:\> netstat -ab

    “a” displays all connections and open ports
    “b” displays the executable responsible for creating the connection

    Your blog is really informative. Keep up the great work!

    4. RS on August 13th, 2008 at 10:29 am
  5. Thanks Ritesh. Glad you liked it :)

    p.s. Had to perform a whois on the IP to identify you. ;)

    5. Bipin Upadhyay on August 13th, 2008 at 10:49 am

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
Place your code as follows:
<pre name="code" class"language"> <pre/> language can be php, ruby etc.

WordPress database error: [Table 'projupa6_wordy.pau_categories' doesn't exist]
SELECT COUNT(*) FROM pau_categories