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 1KkO9q-0008Kr-7Z for garchives@archives.gentoo.org; Mon, 29 Sep 2008 19:11:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D7F1E06ED; Mon, 29 Sep 2008 19:11:45 +0000 (UTC) Received: from mail-gx0-f19.google.com (mail-gx0-f19.google.com [209.85.217.19]) by pigeon.gentoo.org (Postfix) with ESMTP id 53CEDE06ED for ; Mon, 29 Sep 2008 19:11:45 +0000 (UTC) Received: by gxk12 with SMTP id 12so11847871gxk.10 for ; Mon, 29 Sep 2008 12:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=J9MNCFb+Gthf2MYZYpFd1KePtHtEoACPJqYujbj1msg=; b=eA5JnLdzekFXMoXUP9uzF8fx8cB+OD/Ku1iO0vGOQ808VFBBk3e/79qgRA7yj+pn9h R8TndC/IQjWO5A3cgCyb3lQcHH5HPX7VggfxrsNv8eF7GMlafoaPZYEMfrt7L+CwywLn 7OnZkAE4UBFPCWzUf1V8FT3FdaqJErUijrdMw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=LkwA24wfTHvVzIyHm6eFTmhjv7IAag4CBZ/rT8+6DTLXBQ1+0RRecCzlg7xszwMHXi djWKansDTwJPhOxYxuXL/f7ir35tSWwrjyQ+kLStmQvlY7wn0LIGx4dfecEPgXTH6GJn 4N+/Z3+mWx1jsJ6p4fRkm8z6pmxDdEmklQd3w= Received: by 10.100.154.9 with SMTP id b9mr4767266ane.54.1222715503930; Mon, 29 Sep 2008 12:11:43 -0700 (PDT) Received: from ?192.168.2.19? (bas8-montreal02-1096663983.dsl.bell.ca [65.93.195.175]) by mx.google.com with ESMTPS id 9sm731573qbw.6.2008.09.29.12.11.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Sep 2008 12:11:43 -0700 (PDT) Message-ID: <48E0F019.3050707@gmail.com> Date: Mon, 29 Sep 2008 11:11:21 -0400 From: Simon User-Agent: Thunderbird 2.0.0.16 (X11/20080707) 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: <707E41AE68E444499861C6B248AB868453A857EC5E@excprdmbxw002.optus.com.au> In-Reply-To: <707E41AE68E444499861C6B248AB868453A857EC5E@excprdmbxw002.optus.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 72bd9a7b-329f-4271-be49-2e82fcd75ab0 X-Archives-Hash: 4ccb563c8ecf866ff6614be72ff7c42d Have you done an upgrade/update of apache lately? Whenever apache gets updated here, two files are recreated each time. If you look in /etc/apache2, it should look like this: -rw-r--r-- 1 root root 6311 Sep 2 03:23 httpd.conf -rw-r--r-- 1 root root 12958 Sep 8 16:52 magic drwxr-xr-x 2 root root 4096 Sep 8 22:50 modules.d drwxr-xr-x 2 root root 4096 Sep 8 16:53 ssl drwxr-xr-x 2 root root 4096 Sep 16 07:59 vhosts.d Reading through httpd.conf, you should find the lines: ---- # Virtual-host support # # Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we # include a default vhost (enabled by adding -D DEFAULT_VHOST to # APACHE2_OPTS in /etc/conf.d/apache2). Include /etc/apache2/vhosts.d/*.conf ---- And looking through /etc/apache2/vhosts.d/, you should find all your own virtual servers, I name mine as per the port they use: -rwxr-xr-x 1 root root 565 Sep 1 07:55 80.conf -rwxr-xr-x 1 root root 368 Sep 16 07:57 8080.conf -rw-r--r-- 1 root root 2.8K Sep 8 16:52 default_vhost.include I don't have the two files that are recreated each time here, but they contain a configuration similar to the one in my 80.conf. Thus, it load my 80.conf, and then tries to load its own default_80.conf (or something like that) and conflicts since the port 80 is already in use (by another vhost). 2 ways to solve this: either use those default file names for your own vhost configuration so portage will ask you to update /etc files interactively, or delete those 2 files each and every time you update apache. I have never looked into that but maybe by removing the option -D DEFAULT_VHOST in you /etc/conf.d/apache2 might do the trick also. HTH, Simon 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? > > > >