First of all an apology: If this is a noob question. These days I have no ideas what is and isn't noobish.

Secondly, an apology: I am not following the standard way of doing things, but to be honest thats the way I am.

So to business. I am tryng to chroot apache 2.2 (yes I like apache 2 and have loads of experience with it, I have very little apache 1.3 experience). I have got it working in debug mode by

chroot /server/web /usr/local/apache2/bin/httpd -x

lovely, but when I try to run it normally

chroot /server/web /usr/local/apache2/bin/httpd

it fails to daemonize itself and throws the following error

[Mon Nov 27 08:09:40 2006] [crit] (6)Device not configured: apr_proc_detach failed
Pre-configuration failed


I am pretty sure this is due to incorrect /dev nodes in my chrooted file system. At the moment I have

srw-rw-rw-  1 root  wheel         0 Nov 27 07:50 log
crw-rw-rw-  1 root  sys      2,   2 Nov 27 06:41 null
crw-rw-rw-  1 root  wheel   45,   0 Nov 27 08:04 random
crw-rw-rw-  1 root  wheel   45,   2 Nov 27 08:05 urandom

and the following entry in /etc/rc.conf

syslogd_flags="-a /server/web/dev/log"

I have looked around but can't find what the correct config for these devs should be ( so I mknod'ed with the same numbers as in /dev).

Can anybody offer any help or advice?


Thanks

Conrad Winchester

P.S. I still love OpenBSD and the man pages really are helpful - amazing

Reply via email to