Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Error when running Apache

Posted on 2004-09-19
Medium Priority
Last Modified: 2013-12-13

I think I've installed PHP and Apache correctly, but when I run Apache I ge the following error message:

Only one usage of each socked address is normally permitted. make_socket could not bind to address
no listing sockets available. Shutting down. Unable to open logs.

How do I get Apache to run correctly?


Question by:kara334
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 48

Expert Comment

ID: 12097615
Are you sure there is no other programm/apache is running that also uses port 80
to see if there is a process running do a:
netstat -an | grep 80
If there is another process a line like
tcp        0      0    *               LISTEN
will be printed.

Author Comment

ID: 12097634
Thank you for trying to help, but I'm new to all this "port" stuff. Could you please explain what you just said in English? :)

LVL 48

Expert Comment

ID: 12097728
Which operating system are you using, do you have root-priveliges on that machine?

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.


Author Comment

ID: 12097740
I'm using Windows XP. I don't know what root-priveliges are.
LVL 48

Expert Comment

ID: 12097776
Open a command-shell (start -> Execute Command to run cmd.exe)
After you that shell typ
netstat -an
the you will see which port are use. if there is already a webserver running (like IIS) a line like

will be shown. So to start apache you need to shutdown the other webserver that is running.

Author Comment

ID: 12097790
Yes, I got that result. I think the other webserver is for ASP.net. How do I shut it down?

LVL 48

Expert Comment

ID: 12097894
from the command-shell use
net stop iisadmin

To make that permanent got to the administration panel -> services and disable the autostart of WWW-publishing and IIS-admin

Author Comment

ID: 12097944
I couldn't find either of those under Services. And I actually uninstalled WebMatrix because I don't think I'm going to need it. But something is still blocking Port 80. I saw something under Services that said WebClient. Sounds important. Could that be it? What else could it be?


Expert Comment

ID: 12097996
To see what program is blocking your port 80 do this:

1) Start->Execute->cmd.exe

2) Type: netstat -ano

3) Now there will be a column called PID where you see the process ID of all the programs

4) Take note of the PID of the program that listens on port 80

5) Type: tasklist /FI "PID eq ?"  but replace ? by the PID

6) The name of the program or service that uses port 80 will be displayed


Author Comment

ID: 12098518
Thank you ClickMaster.

I did what you said and came up with "tasklist." But a search found no tasklist in the computer. Do I need to turn off "task monitor" under Services, or is tasklist something else?

LVL 40

Expert Comment

by:Richard Quadling
ID: 12109832
tasklist.exe is in C:\WINDOWS\SYSTEM32 (On my Win XP Pro SP2).

How about this idea.

1 - Load up a browser.

2 - enter an address of localhost or

If you get ANYTHING other than the browser saying nothing could be found, you are already running a webserver of some sort.

If you get something but not really sure what, try...

1 - Load a command prompt.

2 - Type: telnet

3 - In telnet, type: SET LOCALECHO

4 - In telnet, type: open 80

5 - In telnet, type: GET /[CR][CR]

6 - That is GET / followed by 2 carriage returns/enters.

You may need to scroll to the top of the window (if you have no scroll bars, alter the properties of the CMD window by increasing the Screen Buffer Size in Layout - you will need to rerun this to see the top if you could not scroll up to see the top).

I get ...

HTTP/1.1 200 OK
Date: Tue, 21 Sep 2004 07:28:58 GMT
Server: SAMBAR
Connection: close
Content-type: text/html

I am running Sambar Server.

You may get something else for Server (if you get anything at all!).

LVL 51

Expert Comment

ID: 12110340
>  I'm using Windows XP
not shure for XP, but most other M$ versions bind IIS (or whetever they think is related) to by default.
And obviously there is no GUI to change that (does anybody really need that?-)

here is a workaround (working on w2k):
cd C:\Inetpub\AdminScripts
cscript adsutil.vbs set w3svc/disablesocketpooling true
# then setting an IP in GUI works

Author Comment

ID: 12262051

I know it's been awhile....busy with my day job and such. I tried what RQuadling suggested and got "could not open connection to the host, on port 23"

Also, I don't have a tasklist.exe in my System 32 folder.

Does anyone have any idea what could be blocking my Apache server?


LVL 48

Accepted Solution

hernst42 earned 1500 total points
ID: 12262356
Download tcpview from http://www.sysinternals.com/ntw2k/source/tcpview.shtml

that will show you which ports are opend by which programm. So look which programm has opened the http-port in the column "Local Adress"

e.g. inetinfo.exe is the IIS-Server

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question