Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 20286 invoked from network); 3 Apr 2010 02:24:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Apr 2010 02:24:01 -0000 Received: (qmail 44268 invoked by uid 500); 3 Apr 2010 02:23:58 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 44244 invoked by uid 500); 3 Apr 2010 02:23:58 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 44236 invoked by uid 99); 3 Apr 2010 02:23:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Apr 2010 02:23:58 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ravi.aroy@gmail.com designates 74.125.83.173 as permitted sender) Received: from [74.125.83.173] (HELO mail-pv0-f173.google.com) (74.125.83.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Apr 2010 02:23:52 +0000 Received: by pvc21 with SMTP id 21so1098562pvc.18 for ; Fri, 02 Apr 2010 19:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=wajNmJYmcgUdgiSUnHBmWsKj+Lv/rFxz+MQaZXMiIZM=; b=KVDugaERFhsyg12Sn3F8Mo+2meAXrbdQYTQGLdfXAYPlLorw0YqXTXvFoBwSas6smw 6GfiwU0Jw7vG4XT6iZYhdEovETZ5wI0gxx6bqJYY3YV0QEiarjYoL779M7g1L3QAnzTx JVjR9r1w3Dz5miG/B8s1GHup63OwI98o94BXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=xZKhC/XJ435HOL/wrkBuNE20isBbAamEWmCOk57HESN2yyHD/asKcaekn3WSUPQUHV r6UXXGblMU+wt6g4U2LLGkgiNL4TD9YxUkDMiV0aojyGADPCAQasRvTIFxDkp08a01zz V1K/MbbQy2qDkxFYtsQN0TmSFgs/hKbppZBa0= MIME-Version: 1.0 Received: by 10.142.226.4 with HTTP; Fri, 2 Apr 2010 19:23:30 -0700 (PDT) In-Reply-To: <4BB61AF0.8030806@itech7.com> References: <4BB61AF0.8030806@itech7.com> Date: Sat, 3 Apr 2010 07:53:30 +0530 Received: by 10.142.247.33 with SMTP id u33mr1013035wfh.44.1270261410676; Fri, 02 Apr 2010 19:23:30 -0700 (PDT) Message-ID: From: Ravi Roy To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=00504502cc6227c07204834bc88c X-Virus-Checked: Checked by ClamAV on apache.org 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 --00504502cc6227c07204834bc88c Content-Type: text/plain; charset=ISO-8859-1 On Fri, Apr 2, 2010 at 9:57 PM, Nilesh Govindarajan 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 > >> >> >> 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 > >> >> >> 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 --00504502cc6227c07204834bc88c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Apr 2, 2010 at 9:57 PM, Nilesh Govindara= jan <lists@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 followin= g, I googgled a lot but could not really find a
solution.
1.Command : $ sudo /etc/rc.d/init.d/httpd start
Error Messa= ge :
Starting httpd: (98)Address already in use: make_sock: could not bi= nd to
address 0.0.0.= 0:80 <http://0.0.0.0:8= 0>=20

no listening sockets available, shutting down
Unab= le to open logs
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[FAILED]
= 2. Command : $ sudo /etc/rc.d/init.d/httpd stop
Error message :
Stopping httpd: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0[FAILED]
3.Command : $sudo /etc/rc.d/init.d/= httpd restart
Error message :
Stopping httpd: =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[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:80>= =20

no listening sockets available, shutting down
Unab= le to open logs
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[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= .
=A0
=A0 Thanks Nilesh, netstat reveals the following :
=A0
=A0=A0=A0 tcp=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0 0 :::80=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 :::*=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 LISTEN=A0=A0=A0= =A0=A0 2056/httpd
=A0
=A0=A0=A0 Strange thing I notice is that start / stop / restart fails,= but service is still started, I am just curious if service is failed to st= art (as error message explains) how come it is started=A0at the first place= ?=A0
=A0=A0=A0 To my view a=A0command 'stop / restart' should kill = a started process and free the port '80' and next initialization sh= ould get the=A0 port without any error.
=A0=A0=A0
=A0=A0=A0 My http configuration have 'Listen 80'=A0
=A0
=A0=A0=A0 Not much into linux stuff. Forgive me if I am wrong somehere= and correct me please.
=A0
=A0=A0 =A0Thanks for your help.
=A0
=A0 - RR

=A0
--00504502cc6227c07204834bc88c--