From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KkH6G-00008J-PG for garchives@archives.gentoo.org; Mon, 29 Sep 2008 11:39:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B3C3E062B; Mon, 29 Sep 2008 11:39:35 +0000 (UTC) Received: from smtp.linuxant.fr (ns1.linuxant.fr [87.98.216.169]) by pigeon.gentoo.org (Postfix) with ESMTP id 0329DE062B for ; Mon, 29 Sep 2008 11:39:35 +0000 (UTC) Received: from [192.168.0.10] (ip-91.net-82-216-61.rev.numericable.fr [82.216.61.91]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.linuxant.fr (Postfix) with ESMTP id C93AB879A8D for ; Mon, 29 Sep 2008 13:44:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxant.fr; s=DKIM; t=1222688694; bh=FDbPkRm3VAZp0S8gtCaRQT6uOP9lImpb9DHw4QY6v0k=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=TRAvVKIij7Gy vlTHf8nihJJ9Nk6dHa5NOvr/qaoeWqLOw2r5yT+av9GQ44nxOyWnl+iO+89JFGj8xYn EtgrwgyrVG3yAjoIHmajACcrccQrHhhrqHBk1gpvizBak35Emyv/yvfmlfQXOgUXnpO XTnA9TRxQ7Hz5je3VXhKjf2nM= DomainKey-Signature: a=rsa-sha1; s=DomainKey; d=linuxant.fr; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: references:in-reply-to:content-type:content-transfer-encoding; b=WzA/OYXchGy9jJv2u2vgrA3Ic11OI+ef20AVGqT4WXb0/B9RxeqNy8ihR2KVHjaNd BhAaDSnWFxi/lFvPpQju1v9oKHXD8tTDc/CG5EfhfVhXJz/XOpyqo0dN0s7fUPS4KMe F8nbAtIKOeRYMQi+0ePBhVWvjHEYZS8WIlyroIw= Message-ID: <48E0BE5C.9040604@linuxant.fr> Date: Mon, 29 Sep 2008 13:39:08 +0200 From: Xav' User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] /etc/init.d/apache2 fails, but apache will run References: <707E41AE68E444499861C6B248AB868453A857ECC4@excprdmbxw002.optus.com.au> In-Reply-To: <707E41AE68E444499861C6B248AB868453A857ECC4@excprdmbxw002.optus.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6732d438-23de-4967-8dc7-a13dc5b16902 X-Archives-Hash: 56a4cbdf0c9d7fba503c315add7e965e Adam Carter a =E9crit : >> On Sunday 28 September 2008 09:26:06 pm Adam Carter wrote: >>> rix adam # /etc/init.d/apache2 start >>> * Starting apache2 ... >>> (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 >> [ >>> ok ] rix adam # >>> >>> The socket is not in use and log dir perms are ok, and; >>> >>> rix adam # apache2 -f /etc/apache2/httpd.conf >>> rix adam # pgrep -lf apach >>> 17740 apache2 -f /etc/apache2/httpd.conf >>> 17741 apache2 -f /etc/apache2/httpd.conf >>> 17744 apache2 -f /etc/apache2/httpd.conf >>> 17772 apache2 -f /etc/apache2/httpd.conf >>> rix adam # >>> >>> So, how do I troubleshoot this? >> I just did a google search > something else is bound to port 80. >=20 > As stated above - socket 80 is not in use (according to netstat). If th= ere was, "apache2 -f /etc/apache2/httpd.conf" would also fail, would it n= ot? Can you please post the output of grep -r Listen /etc/apache2 ... This=20 might help :) IMHO, i think that wehn you start apache manually, you do=20 not define DEFAULT_VHOST which add a Listen 80 directive, so try to=20 start apache manually with the same command line arguments as the init=20 script did it... HTH. Xav' >> Do a "ps -A | grep apache" and see if a stray daemon is >> running around... I >=20 > I did that, there were no apache processes running. >=20 >> not then go to /etc/apache2/vhosts.d and make sure both config files >> are "pointing" to the same host that apache is running on... >=20 > Again, if the config was broken then I'd expect # apache2 -f /etc/apach= e2/httpd.conf to also fail. >=20 > I'd say the problem is related to how the gentoo stuff starts the daemo= n, or maybe conf.d/apache2, but nothing below looks unusual to me; >=20 > rix apache2 # grep ^[^#] /etc/conf.d/apache2 > APACHE2_OPTS=3D"-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFA= ULT_VHOST -D PHP5" > CONFIGFILE=3D/etc/apache2/httpd.conf