Jump to content

Unable to run Apache2.2 web server...


madusudanan

Recommended Posts

hi all
I am unable to run Apache 2.2 web server though I ve installed as per the doumentation provided in the website. when i try to run the Apache server from Command line prompt I get the following error message:

C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd
(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
no listening sockets available, shutting down

As I am new to the server applications I do not know what does this error mean?

Link to comment
Share on other sites

Either you have something else already listening on port 80, possibly a firewall? Or you specified the wrong local address for apache to listen on? (Typically in the httpd config you would have it set as "Listen 80" without the quotes, more specifically you could enter "Listen XXX.XXX.XXX.XXX:80" without the quotes to have it listen on port 80 on the specified inerface associated with that IP)
Link to comment
Share on other sites

  • 1 month later...
There is a service/other server running on port 80 already and thus Apache is unable to bind to that port when starting up and you get the for mentioned error message.

Setup Apache to listen to another port, port 8080 should do, by changing the Listen directive to the following in the httpd.conf:

Listen 8080

Now save the httpd.conf and restart Apache, open up a browser and go to the following url:
http://localhost:8080/

Apache should now be working.
Link to comment
Share on other sites

Thank you, for some reason it is now working.  I looked at all the port usage and nothing is using port 80, and previously i did try this by setting "listen" to 8088, with no results, now after rebooting several times (probably not necessary, just a habit from MS) it seems to work with http://localhost and not using :8080 to specify the port.  Anyway, a lot learned today, so now i can move forward.  THANKS.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.