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 |

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to