From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1ITpuL-00066Y-7z for garchives@archives.gentoo.org; Sat, 08 Sep 2007 02:18:50 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l882Anwt022570; Sat, 8 Sep 2007 02:10:49 GMT Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l88263WC016893 for ; Sat, 8 Sep 2007 02:06:04 GMT Received: by fk-out-0910.google.com with SMTP id 19so1048935fkr for ; Fri, 07 Sep 2007 19:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=NYKSP40zE8vFDz9g8TLVcvOHlTvJXhOJD5Ccgf5z8k0=; b=a6R3Iv44Arkv3JaX4sjOT/X4HxUHj2OFOScD2j9/z9NHu+5jz6/EYY57yY4YlJbDZgRaySpfzep2nZJvZwGoal8FWlyeQjfP7npWHs0aqgoUjW5gzy34AM37bi3+k0Wt8GK9JNzQs+XxqyCw0J7tKuWk+Xlp/jw1uv8NSYsPvHg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eCP/ELtlS/I4hvJVeiYaS1sY9OmfKLDEpD5iqM4CdWVXcmMeVTNK7ikIhKNZD4rF0qL7c5ruvIeLEV/qnmNkRUFwvQQnXpKsQdcavKfVBWaiTGBtRMSPWy3wNSCjEUxevmpIqUXq0Qe/mgJXqB61vf07oFysd8nd3eYBxOBOtRs= Received: by 10.82.107.15 with SMTP id f15mr2586335buc.1189217161987; Fri, 07 Sep 2007 19:06:01 -0700 (PDT) Received: by 10.82.186.14 with HTTP; Fri, 7 Sep 2007 19:06:01 -0700 (PDT) Message-ID: <9acccfe50709071906u7e01293es38f85eefa78b6c85@mail.gmail.com> Date: Fri, 7 Sep 2007 19:06:01 -0700 From: "Kevin O'Gorman" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Dead apache (cannot listen) In-Reply-To: <9acccfe50709071625j480e9db0ya13d6e6f2f6d59d4@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2240_13125604.1189217161961" References: <9acccfe50709061808w6aa8c5b4qe5a2db4e461e81ea@mail.gmail.com> <200709070718.00604.loel@gmx.de> <9acccfe50709070807g1133fa17pd8d2a887b2901607@mail.gmail.com> <46E1A414.2030603@lix-world.net> <9acccfe50709071625j480e9db0ya13d6e6f2f6d59d4@mail.gmail.com> X-Archives-Salt: cbf2e675-020a-465c-828e-8dcebde04801 X-Archives-Hash: 0fb44200f0db77e7a14f3605b4fce549 ------=_Part_2240_13125604.1189217161961 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mystery solved. As expected: my bad. Details at the bottom On 9/7/07, Kevin O'Gorman wrote: > > On 9/7/07, Steen Eugen Poulsen wrote: > > > Kevin O'Gorman skrev: > > > My 00_default_vhost.conf: > > > =============== start 00_default_vhost.conf ========================== > > > # If your host doesn't have a registered DNS name, enter its IP > > address > > > here. > > > # > > > #ServerName www.example.com:80 > > > ServerName www.kosmanor.com:80 > > > > > > #KOSMANOR changes > > > #Listen 80 > > > Listen 64.166.164.49:80 > > > Listen localhost:80 > > > > Thats not a vhost configuration, so it's a bit confusing why your trying > > to use Gentoo's default vhost config file and making non vhost configs > > and I bet it isn't liking the missing: > > > > NameVirtualHost *:80 (You will have to check the apache2 doc for the > > VirtualIP version of NameVirtualHost) > > > > > > > > If you want to make a non vhost configuration, then do so from the > > ground up, don't mix vhost and non vhost unless you want a mess. > > > > The reason you get :80 already bound, is because your configuration bind > > twice to the same IP. It's Apache itself that bind twice and bails on > > the second attempt. > > > > Not having used this configuration layout in years, I would guess > > ServerName is the one creating the listening socket, maybe because it's > > placed before Listen. > > > A workaround has been found (see below). > > As may be obvious by now, I don't understand much about configuring > apache. I just used what dropped in when I installed Gentoo around 2003, and > tried to adapt as time and updates came along. My needs are fairly simple: > a basic server on a single IP plus localhost, using the default port 80. > Static and CGI pages only, no secure applications. Users (only me, > actually) have a page in public_html. I intend to use mod_python > eventually, or write my own module, but that's for later. > > I have not a clue how to build a configuration "from the ground up", and > I'm hoping to not have to learn. Since it would be a singleton excercise, I > would just forget it anyway in the midst of many other things that claim my > attention. > > Workaround: > In any event, making ServerName come after Listen, or commenting it out > completely, do not change the symptoms at all. However, commenting out all > Listen lines does allow apache to start. It seems you're right and apache > is colliding with itself, but I don't know why, as I don't see any other > Listen directives. This is at best a stopgap because apache's now listening > promiscuously, which I do not like at all. > > I'm hoping for more help, but my fallback is to save my config files, > unmerge apache completely, re-emerge it and see if the default configuration > can be made to work right. That might turn out to be a lot of work, for > which read a lot of time. > I was sure I checked for duplicate Listen directives, but I missed one. Fixing that allowed apache to start. As pennance, I hunted down all my tailorings and put them in a single include file. In the process I wound up eliminating a bunch of other duplications. Hopefully things will be more sane soon. But not right away -- but I'll start another thread for that. ++ kevin -- Kevin O'Gorman, PhD ------=_Part_2240_13125604.1189217161961 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mystery solved.  As expected: my bad.  Details at the bottom

On 9/7/07, Kevin O'Gorman <kogorman@gmail.com > wrote:
On 9/7/07, Steen Eugen Poulsen <sep@lix-world.net> wrote:
Kevin O'Gorman skrev:
> My 00_default_vhost.conf:
> =============== start 00_default_vhost.conf ==========================
> # If your host doesn't have a registered DNS name, enter its IP address
> here.
> #
> #ServerName www.example.com:80 < http://www.example.com:80>
> ServerName www.kosmanor.com:80 <http://www.kosmanor.com:80>
>
> #KOSMANOR changes
> #Listen 80
> Listen 64.166.164.49:80 <http://64.166.164.49:80>
> Listen localhost:80

Thats not a vhost configuration, so it's a bit confusing why your trying
to use Gentoo's default vhost config file and making non vhost configs
and I bet it isn't liking the missing:

NameVirtualHost *:80 (You will have to check the apache2 doc for the
VirtualIP version of NameVirtualHost)

<VirtualHost *:80>

If you want to make a non vhost configuration, then do so from the
ground up, don't mix vhost and non vhost unless you want a mess.

The reason you get :80 already bound, is because your configuration bind
twice to the same IP. It's Apache itself that bind twice and bails on
the second attempt.

Not having used this configuration layout in years, I would guess
ServerName is the one creating the listening socket, maybe because it's
placed before Listen.

A workaround has been found (see below).

As may be obvious by now, I don't understand much about configuring apache. I just used what dropped in when I installed Gentoo around 2003, and tried to adapt as time and updates came along.  My needs are fairly simple: a basic server on a single IP plus localhost, using the default port 80.  Static and CGI pages only, no secure applications.  Users (only me, actually) have a page in public_html.  I intend to use mod_python eventually, or write my own module, but that's for later.

I have not a clue how to build a configuration "from the ground up", and I'm hoping to not have to learn.  Since it would be a singleton excercise, I would just forget it anyway in the midst of many other things that claim my attention.

Workaround:
In any event, making ServerName come after Listen, or commenting it out completely, do not change the symptoms at all.  However, commenting out all Listen lines does allow apache to start.  It seems you're right and apache is colliding with itself, but I don't know why, as I don't see any other Listen directives.  This is at best a stopgap because apache's now listening promiscuously, which I do not like at all.

I'm hoping for more help, but my fallback is to save my config files, unmerge apache completely, re-emerge it and see if the default configuration can be made to work right.  That might turn out to be a lot of work, for which read a lot of time.

I was sure I checked for duplicate Listen directives, but I missed one.  Fixing that allowed apache to start.
As pennance, I hunted down all my tailorings and put them in a single include file.  In the process I wound
up eliminating a bunch of other duplications.  Hopefully things will be more sane soon.

But not right away -- but I'll start another thread for that.

++ kevin



--
Kevin O'Gorman, PhD
------=_Part_2240_13125604.1189217161961-- -- gentoo-user@gentoo.org mailing list