From nobody@FreeBSD.org  Tue Feb 10 16:23:46 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C31E31065670
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Feb 2009 16:23:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B0FFD8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Feb 2009 16:23:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1AGNkIB097608
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Feb 2009 16:23:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n1AGNkqc097601;
	Tue, 10 Feb 2009 16:23:46 GMT
	(envelope-from nobody)
Message-Id: <200902101623.n1AGNkqc097601@www.freebsd.org>
Date: Tue, 10 Feb 2009 16:23:46 GMT
From: Glen Barber <glen.j.barber@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Edit www/apache22/pkg-message to prompt user to add hostname to /etc/hosts 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131563
>Category:       ports
>Synopsis:       [patch] Edit www/apache22/pkg-message to prompt user to add hostname to /etc/hosts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    apache
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 10 16:30:01 UTC 2009
>Closed-Date:    Fri Apr 10 06:40:22 UTC 2009
>Last-Modified:  Fri Apr 10 06:40:22 UTC 2009
>Originator:     Glen Barber
>Release:        7.1-RELEASE-p2
>Organization:
>Environment:
FreeBSD apache.phoenix.local 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #0: Sun Feb  1 11:31:52 EST 2009     root@phoenix.local:/usr/obj/usr/src/sys/PHOENIX  i386
>Description:
Patch to remind user(s) to edit /etc/hosts with the output of the `hostname` command:

--- pkg-message 2009-02-10 16:15:04.000000000 +0000
+++ pkg-message_edit    2009-02-10 16:17:03.000000000 +0000
@@ -1,2 +1,5 @@
+You must have output from the 'hostname' command in your /etc/hosts file
+for apache to start properly.
+
 To run apache www server from startup, add apache22_enable="YES"
 in your /etc/rc.conf. Extra options can be found in startup script.

>How-To-Repeat:

>Fix:
See above.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->apache 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Feb 10 16:30:14 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131563 

From: "Philip M. Gollucci" <pgollucci@freebsd.org>
To: bug-followup@FreeBSD.org, glen.j.barber@gmail.com
Cc:  
Subject: Re: ports/131563: [patch] Edit www/apache22/pkg-message to prompt
 user to add hostname to /etc/hosts
Date: Tue, 10 Feb 2009 20:14:17 -0500

 This is not true.  Largely, this depends on the modules you have loaded (in 
 particular, mod_uniqueid and mod_usertrack).
 
 Additionally, it also depends on if you hostname resolves via DNS.
 
 Finally, it depends on what you have set for the ServerName directive in
 httpd.conf
 
 (x 3 bugs)

From: Glen Barber <glen.j.barber@gmail.com>
To: "Philip M. Gollucci" <pgollucci@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/131563: [patch] Edit www/apache22/pkg-message to prompt 
	user to add hostname to /etc/hosts
Date: Tue, 10 Feb 2009 20:25:35 -0500

 On Tue, Feb 10, 2009 at 8:14 PM, Philip M. Gollucci
 <pgollucci@freebsd.org> wrote:
 > This is not true.  Largely, this depends on the modules you have loaded (in
 > particular, mod_uniqueid and mod_usertrack).
 >
 
 AFAIK, these are 'default'.
 
 > Additionally, it also depends on if you hostname resolves via DNS.
 >
 
 Right.  Most of the apache startup problems on FreeBSD I see are
 /etc/hosts related.  Most of the users experiencing are "new" to
 FreeBSD, and neglect adding their hostname to /etc/hosts.  (I know I
 still do on occasion.)
 
 > Finally, it depends on what you have set for the ServerName directive in
 > httpd.conf
 >
 
 I have successfully run Apache (2.0.x and 2.2.x) without a ServerName
 directive but a resolvable address (/etc/hosts entry).
 
 I think adding this patch would be a "convenience reminder" rather
 than "this will fix all of the problems."  At least, it is a step to
 try to prevent a FAQ I see too often.
 
 Regards,
 
 -- 
 Glen Barber

From: "Philip M. Gollucci" <pgollucci@p6m7g8.com>
To: Glen Barber <glen.j.barber@gmail.com>
Cc: "Philip M. Gollucci" <pgollucci@freebsd.org>, 
 bug-followup@freebsd.org
Subject: Re: ports/131563: [patch] Edit www/apache22/pkg-message to prompt
 	user to add hostname to /etc/hosts
Date: Thu, 12 Feb 2009 00:52:10 -0500

 Glen Barber wrote:
 > Right.  Most of the apache startup problems on FreeBSD I see are
 > /etc/hosts related.  Most of the users experiencing are "new" to
 > FreeBSD, and neglect adding their hostname to /etc/hosts.  (I know I
 > still do on occasion.)
 Configuring the network in /sysinstall at install time does this for you.
 
 > I have successfully run Apache (2.0.x and 2.2.x) without a ServerName
 > directive but a resolvable address (/etc/hosts entry).
 While its good to have your hostname in /etc/hosts, it doesn't have to be
 a remote dns server can have it and answer it just fine.
 
 The pkg-message isn't meant to replace docs, rather it should really reference 
 docs.
 
 
 -- 
 ------------------------------------------------------------------------
 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
 Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
 Consultant          - P6M7G8 Inc.                http://p6m7g8.net
 Senior Sys Admin    - RideCharge, Inc.           http://ridecharge.com
 Contractor          - PositiveEnergyUSA          http://positiveenergyusa.com
 ASF Member          - Apache Software Foundation http://apache.org
 FreeBSD Committer   - FreeBSD Foundation         http://freebsd.org
 
 Work like you don't need the money,
 love like you'll never get hurt,
 and dance like nobody's watching.

From: Glen Barber <glen.j.barber@gmail.com>
To: "Philip M. Gollucci" <pgollucci@p6m7g8.com>
Cc: "Philip M. Gollucci" <pgollucci@freebsd.org>, bug-followup@freebsd.org
Subject: Re: ports/131563: [patch] Edit www/apache22/pkg-message to prompt 
	user to add hostname to /etc/hosts
Date: Thu, 12 Feb 2009 09:50:08 -0500

 On Thu, Feb 12, 2009 at 12:52 AM, Philip M. Gollucci
 <pgollucci@p6m7g8.com> wrote:
 > Glen Barber wrote:
 >>
 >> Right.  Most of the apache startup problems on FreeBSD I see are
 >> /etc/hosts related.  Most of the users experiencing are "new" to
 >> FreeBSD, and neglect adding their hostname to /etc/hosts.  (I know I
 >> still do on occasion.)
 >
 > Configuring the network in /sysinstall at install time does this for you.
 >
 
 To be honest, I have yet to see this happen, even when using a FQDN as
 a hostname.
 
 >> I have successfully run Apache (2.0.x and 2.2.x) without a ServerName
 >> directive but a resolvable address (/etc/hosts entry).
 >
 > While its good to have your hostname in /etc/hosts, it doesn't have to be
 > a remote dns server can have it and answer it just fine.
 >
 
 Not everyone needs an internal DNS server, and if the hostname is not
 a resolvable FQDN, this won't work.
 
 > The pkg-message isn't meant to replace docs, rather it should really
 > reference docs.
 
 I agree.  My intent with the PR I submitted was to try to make things
 a little more clear on, as I stated, one of the most common FAQs I see
 regarding Apache on FreeBSD.
 
 -- 
 Glen Barber

From: "Philip M. Gollucci" <pgollucci@p6m7g8.com>
To: Glen Barber <glen.j.barber@gmail.com>
Cc: "Philip M. Gollucci" <pgollucci@freebsd.org>, 
 bug-followup@freebsd.org
Subject: Re: ports/131563: [patch] Edit www/apache22/pkg-message to prompt
 	user to add hostname to /etc/hosts
Date: Thu, 12 Feb 2009 09:53:09 -0500

 Glen Barber wrote:
 > I agree.  My intent with the PR I submitted was to try to make things
 > a little more clear on, as I stated, one of the most common FAQs I see
 > regarding Apache on FreeBSD.
 How about we compromise and say, something related to ....
 
 '... Your hostname must be resolvable using at least 1 mechanism in 
 /etc/nsswitch typically DNS or /etc/hosts or apache will have issues starting.'
 
 
 
 
 
 -- 
 ------------------------------------------------------------------------
 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
 Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
 Consultant          - P6M7G8 Inc.                http://p6m7g8.net
 Senior Sys Admin    - RideCharge, Inc.           http://ridecharge.com
 Contractor          - PositiveEnergyUSA          http://positiveenergyusa.com
 ASF Member          - Apache Software Foundation http://apache.org
 FreeBSD Committer   - FreeBSD Foundation         http://freebsd.org
 
 Work like you don't need the money,
 love like you'll never get hurt,
 and dance like nobody's watching.

From: Glen Barber <glen.j.barber@gmail.com>
To: "Philip M. Gollucci" <pgollucci@p6m7g8.com>
Cc: "Philip M. Gollucci" <pgollucci@freebsd.org>, bug-followup@freebsd.org
Subject: Re: ports/131563: [patch] Edit www/apache22/pkg-message to prompt 
	user to add hostname to /etc/hosts
Date: Thu, 12 Feb 2009 09:54:19 -0500

 On Thu, Feb 12, 2009 at 9:53 AM, Philip M. Gollucci
 <pgollucci@p6m7g8.com> wrote:
 > How about we compromise and say, something related to ....
 >
 > '... Your hostname must be resolvable using at least 1 mechanism in
 > /etc/nsswitch typically DNS or /etc/hosts or apache will have issues
 > starting.'
 >
 
 You beat me to it.  I was just about to edit the patch(es) I submitted. :)
 
 -- 
 Glen Barber
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Fri Apr 10 06:40:20 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131563 
>Unformatted:
