You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by alin vasile <al...@yahoo.com> on 2010/04/03 13:32:55 UTC
Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error
Are you sure that you have the permisson to listen on port 80?
________________________________
From: Ravi Roy <ra...@gmail.com>
To: users@httpd.apache.org
Sent: Sat, April 3, 2010 7:08:17 AM
Subject: Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error
On Sat, Apr 3, 2010 at 9:13 AM, Nilesh Govindarajan <li...@itech7.com> wrote:
On 04/03/10 07:53, Ravi Roy wrote:
>
>
>>
>>On Fri, Apr 2, 2010 at 9:57 PM, Nilesh Govindarajan <lists@itech7.com
>>
>><ma...@itech7.com>> wrote:
>>
>> On 04/02/10 21:52, Ravi Roy wrote:
>>
>> Hi
>> I installed Apache/2.2.13 (Unix) on CentOS 5.4. My prolbem is
>>>> that when
>> I try to start and stop it using "sudo /etc/rc.d/init.d/httpd
>> start /
>> stop / restart"
>> It gives me the following, I googgled a lot but could not really
>>>> find a
>> solution.
>> 1.Command : $ sudo /etc/rc.d/init.d/httpd start
>> Error Message :
>> Starting httpd: (98)Address already in use: make_sock: could not
>> bind to
>> address 0.0.0.0:80<http://0.0.0.0/> <http://0.0.0.0/
>>>> <http://0.0.0.0/>>
>>
>>
>>
>> no listening sockets available, shutting down
>> Unable to open logs
>> [FAILED]
>> 2. Command : $ sudo /etc/rc.d/init.d/httpd stop
>>>> Error message :
>> Stopping httpd: [FAILED]
>> 3.Command : $sudo /etc/rc.d/init.d/httpd restart
>> Error message :
>> Stopping httpd: [FAILED]
>>>> Starting httpd: (98)Address already in use: make_sock: could not
>> bind to
>> address 0.0.0.0:80 <http://0.0.0.0/> <http://0.0.0.0:80
>>>> <http://0.0.0.0/>>
>>
>>
>>
>> no listening sockets available, shutting down
>> Unable to open logs
>> [FAILED]
>> Can sombody help me on this please?
>>>> Thanks!
>> -RR
>>
>>
>> Some other process is already running at port number 80. Use netstat
>> -ltnp | grep ':80' to get the process name and pid.
>>
>> Thanks Nilesh, netstat reveals the following :
>>>> tcp 0 0 :::80
>>:::* LISTEN 2056/httpd
>> Strange thing I notice is that start / stop / restart fails, but
>>service is still started, I am just curious if service is failed to
>>>>start (as error message explains) how come it is started at the first
>>place?
>> To my view a command 'stop / restart' should kill a started process
>>and free the port '80' and next initialization should get the port
>>>>without any error.
>> My http configuration have 'Listen 80'
>> Not much into linux stuff. Forgive me if I am wrong somehere and
>>correct me please.
>> Thanks for your help.
>> - RR
>>
>>
>Try using the /sbin/service command instead of this.
>
>Also, your httpd is self compiled or installed using yum ?
>
>And did you make any alterations (or created) /etc/rc.d/init.d/httpd ?
>
>
>
Thanks Nilesh,
I tried ;
command : sudo /sbin/service httpd restart
Error message :
Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
I compiled httpd server is myself on CentOS 5.4, I did not make any alterations to /etc/rc.d/init.d/httpd.
Thanks
-RR
Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error
Posted by alin vasile <al...@yahoo.com>.
so you killed the existing process that listens to 80 and started again. now you can see that a process listens to 80?
also please check if the log directories configured in httpd.conf exist and the apache user has permission to write in them.
________________________________
From: Ravi Roy <ra...@gmail.com>
To: users@httpd.apache.org
Sent: Sun, April 4, 2010 12:29:52 PM
Subject: Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error
On Sat, Apr 3, 2010 at 8:35 PM, alin vasile <al...@yahoo.com> wrote:
yes, should be enough.
>
>have you tried killing the running process that listens to that port and start apache again?
>
Yes, tried, but same error.
Thanks!
-RR
Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already
in use: make_sock: could not bind to address 0.0.0.0:80 error
Posted by Ravi Roy <ra...@gmail.com>.
On Sat, Apr 3, 2010 at 8:35 PM, alin vasile <al...@yahoo.com>wrote:
> yes, should be enough.
>
> have you tried killing the running process that listens to that port and
> start apache again?
>
Yes, tried, but same error.
Thanks!
-RR
Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error
Posted by alin vasile <al...@yahoo.com>.
yes, should be enough.
have you tried killing the running process that listens to that port and start apache again?
________________________________
From: Ravi Roy <ra...@gmail.com>
To: users@httpd.apache.org
Sent: Sat, April 3, 2010 5:50:50 PM
Subject: Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 error
On Sat, Apr 3, 2010 at 8:10 PM, Ravi Roy <ra...@gmail.com> wrote:
>
>
>On Sat, Apr 3, 2010 at 5:02 PM, alin vasile <al...@yahoo.com> wrote:
>
>Are you sure that you have the permisson to listen on port 80?
>>
>
>
> User logged in (current user) in the system is part of sudoers. I think that is sufficient ?
> Thanks.
>-RR
Also, current user is also mentioned in httpd.conf Apache :
user username
group groupname
Thanks
-RR
Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already
in use: make_sock: could not bind to address 0.0.0.0:80 error
Posted by Ravi Roy <ra...@gmail.com>.
On Sat, Apr 3, 2010 at 8:10 PM, Ravi Roy <ra...@gmail.com> wrote:
>
>
> On Sat, Apr 3, 2010 at 5:02 PM, alin vasile <al...@yahoo.com>wrote:
>
>> Are you sure that you have the permisson to listen on port 80?
>>
>
>
> User logged in (current user) in the system is part of sudoers. I think
> that is sufficient ?
> Thanks.
> -RR
>
Also, current user is also mentioned in httpd.conf Apache :
user username
group groupname
Thanks
-RR
Re: [users@httpd] Apache/2.2.13 : Starting httpd: (98)Address already
in use: make_sock: could not bind to address 0.0.0.0:80 error
Posted by Ravi Roy <ra...@gmail.com>.
On Sat, Apr 3, 2010 at 5:02 PM, alin vasile <al...@yahoo.com>wrote:
> Are you sure that you have the permisson to listen on port 80?
>
User logged in (current user) in the system is part of sudoers. I think
that is sufficient ?
Thanks.
-RR