Habe mir das mal installiert und wollte das ganze dann in einer chroot umgebung laufen lassen.
Installiert ist es und das Modul läuft auch:
Code: Select all
[Mon Oct 02 09:47:46 2006] [notice] Apache/2.0.54 (Debian GNU/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e PHP/4.4.4 mod_chroot/0.4 configured
Code: Select all
ChrootDir /home
Code: Select all
[Mon Oct 02 09:41:05 2006] [notice] mod_chroot: changed root to /home.
[Mon Oct 02 09:41:05 2006] [error] (2)No such file or directory: could not create /var/run/apache2.pid
[Mon Oct 02 09:41:05 2006] [error] apache2: could not log pid to file /var/run/apache2.pid
Wie Stelle ich das an, damit es dennoch wieder geht?
Hier habe ich gelesen das es nur in der main Server Konfiguration zulässig ist
--> http://core.segfault.pl/~hobbit/mod_chroot/install.html
Code: Select all
Configuration (Apache 1.3 and Apache 2.0)
mod_chroot provides only one configuration directive - ChrootDir. It can only be used in main server configuration. You can't put ChrootDir inside a <Directory>, <Files>, <Location>, <VirtualHost> sections or .htaccess files. Example: if you store your www files in /var/www and you want to make it a "virtual root", put
ChrootDir /var/www
in httpd.conf. Remember that ChrootDir affects DocumentRoot: if you had DocumentRoot pointing to "/var/www", you should now change it to "/" - otherwise Apache will be looking for "/var/www" inside of your root.
Kann mir jemand bei dem Problem helfen??
Installiert wurde das ganze via apt-get install libapache2-mod-chroot
edit:
selbst wenn ich den pfad zum anlegen der pid file auf /home setze geht es nicht. Apache2 verweigert den Dienst :(
Code: Select all
[Mon Oct 02 10:05:40 2006] [error] (2)No such file or directory: could not create /home/apache2.pid
[Mon Oct 02 10:05:40 2006] [error] apache2: could not log pid to file /home/apache2.pid
--> http://core.segfault.pl/~hobbit/mod_chr ... che20.html
will es nicht.