LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ubuntu 10.04 mod_chroot issues (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-10-04-mod_chroot-issues-930917/)

bentman78 02-23-2012 01:49 PM

Ubuntu 10.04 mod_chroot issues
 
I have apache2 installed on ubuntu 10.04 and I'm running into issues when I'm trying to chroot the apache process.

Under the PidFile directive you're supposed to place the following directive in your apache2.conf - according to the documentation I read:
Code:

ChrootDir /home/apache
Underneath /home/apache I have cgi-bin, /var, /var/www and /var/run.

When I start the server it won't display any pages and can't connect but the pid file gets put into /home/apache/var/run/

My sites-available/default is as follows:
Code:

DocumentRoot /var/www

Because I have created /var/www underneath /home/apache it should work but to no avail.

Has anyone run into problems with chorrot apache and ubuntu before?

By the way when the "ChrootDir" is commented out apache works fine.


All times are GMT -5. The time now is 09:15 PM.