Date: Wed, 11 Jun 2008 08:54:20 -0700 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Jack Raats <jack@jarasoft.net> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: FreeBSD 7 and Apache 1.3.41 PROBLEM Message-ID: <20080611155420.GA65168@eos.sc1.parodius.com> In-Reply-To: <087EAA726CFA4573BF9B39E69A5F3AE8@jarasoft.net> References: <087EAA726CFA4573BF9B39E69A5F3AE8@jarasoft.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 11, 2008 at 05:28:26PM +0200, Jack Raats wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On a server I was running FreeBSD 6.3-STABLE together with apache 1.3.41 without any problem. > > After upgrading FreeBSD to FreeBSD 7.0-STABLE using a source upgrade, compiling, and a full recompile of all the ports apache refuses to start, or starts and exits with a .core dump. > > In httpd-error.log > [Wed Jun 11 17:01:04 2008] [info] mod_unique_id: using ip addr 10.10.10.10 > [Wed Jun 11 17:01:05 2008] [info] (2)No such file or directory: make_sock: for port 80, setsockopt: (SO_ACCEPTFILTER) > [Wed Jun 11 17:01:05 2008] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run? > > After hashing out > #LoadModule unique_id_module libexec/apache/mod_unique_id.so > #AddModule mod_unique_id.c > > Apache starts normally > > Can anyone explain this? If by "this" you're referring to the setsockopt() error, yes. If by "this" you're referring to the coredump, no, not without more information. The problem in your error logs indicate some sort of issue relating to the accept filter in FreeBSD, which Apache can use (accf_http). I don't think Apache 1.3.x has this functionality (rc-script-wise), but on 2.2.x on RELENG_6, we use this in rc.conf to load the accept module prior to Apache starting: apache22_http_accept_enable="yes" You can try loading the module yourself using "kldload accf_http.ko", then restarting (stop/start, not graceful or restart!) Apache. P.S. -- I've removed freebsd-questions@ from the CC, since cross- posting is looked down upon. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080611155420.GA65168>