[Fwd: Chroot httpd problem]

David Jansen jansen at strw.leidenuniv.nl
Wed Mar 9 14:53:08 UTC 2005


On Mon, Mar 07, 2005 at 08:16:30PM -0800, calvin at dslextreme.com wrote:
> These files are in the chroot directory meaning:
> 
> /chroot/www/etc/httpd/conf.d/auth_mysql.conf
> /chroot/www/etc/httpd/modules/mod_auth_mysql.so
> /chroot/www/usr/lib/mysql/libmysqlclient.so.10
> 
> Why does it complain that it wan not there ? Any idea ?
> 

Have you checked what you have actually copied? Some of the items under
/etc/httpd are actually symbolic links, e.g.:

$ ls -l /etc/httpd/modules
lrwxrwxrwx  1 root root 27 Nov 13 12:01 /etc/httpd/modules -> ../../usr/lib/httpd/modules

It will depend on how you copied those to the /chroot location whether
the links got copied or the actual files (e.g. cp -a copies the link,
which will not work once inside the chroot jail)

David Jansen




More information about the users mailing list