HowTo: Fix docroot in suexec (on Debian)

1 post / 0 new
#1 Mon, 06/22/2009 - 17:26
klaus

HowTo: Fix docroot in suexec (on Debian)

After updating apache from debian repos have 500 internal error on cgi scripts and 'command not in docroot' in suexec logs. Here is my way to slove the problem.

Add the virtualmin source to the /etc/apt/sources.list

pico /etc/apt/sources.list
deb http://software.virtualmin.com/gpl/debian/ virtualmin-etch main

Don't forget to import gpg key:

wget --quiet http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin
apt-key add RPM-GPG-KEY-virtualmin

wget --quiet http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin
apt-key add RPM-GPG-KEY-webmin

Update package list

apt-get update

Then install apache build with suexec docroot set to /home

apt-get -t virtualmin-etch install apache2

Finaly, check the docroot

/usr/lib/apache2/suexec -V

Sorry for my english, hope the topic useful ;)