Tuesday, October 13, 2009

Solution to a common proplem running virtualmin on Debian

If you install Virtualmin manually on an existing Apache installation you may encounter a couple of suexec errors.
The first one usually directs you to use suexec-custom instead if suexec. But doing so without further configuration, still gives you this error:

Failed to save enabled features : The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

To resolve this you should find your way to: etc/apache2/suexec/ and edit the file www-data
The file will look something like this:

# The first two lines contain the suexec document root and the suexec userdir
# suffix. Both features can be disabled separately by prepending a # character.
# This config file is only used by the apache2-suexec-custom package.

Change the path from /var/www to /home

There's no need to recompile anything.

No comments:

Blog Archive