httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Boutilier <>
Subject Re: [users@httpd] help needed : unable to start httpd
Date Wed, 14 Jan 2004 19:44:53 GMT wrote:
> On Wednesday 14 Jan 2004 5:04 pm, Boyle Owen wrote:
>>>-----Original Message-----
>>>From: []
>>>sorry - I perhaps did not make it clear - I have shut down
>>>and de-installed
>>>the distributed version. There are no httpd processes
>>>running, and lookina
>>>at the output from 'netstat -a' there doesn't appear to be
>>>any other processes
>>>using the port. I have been running Unix/Linux for many years
>>>and know enough
>>>about the generalities of networking.
>>Sorry about that - on a first read-through, it looked to me that you'd
>>upgraded Linux. That would've reinstalled a vendor apache which start at
>>boot and would block the port.
>>Hang on... I just realised your error message is "no listening sockets
>>available" - this is not the same as "Address already in use"... Anyway,
>>a quick look on Google (this is a common problem) indicates that you may
>>have conflicting Listen directives. Have a close look at those.
> Found it! You were right first time - there was still a process running
> using that port - I'd been using:
>         ps aux | fgrep httpd
> to check for servers, but the new version of apachectl includes the 
> path, which means the httpd gets lost of the end. I started a test version
> directly, rather than via apachectl and that was still lurking around.
> Got rid of those and apachctl now starts and stops it OK. Just changed
> the httpd.conf file to include .php files and my vhosts and it seems to be
> working correctly. I wrote a quick 20-line server
> and tried that and it got the same error, so I went back to 'netstat -a'
> and spotted the .http port this time around. Must have missed it earlier!
> Sorry for wasting your time! Many thanks for the advice.
> Bill

I find the best way to what process is using port 80 is to use the 
following command:

netstat -nap --inet|grep -w 80|grep LISTEN

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message