Change domain folder directory

I currently have my webmin and virtualmin to setup new domains in the /home directory. I would like it though to setup everything in the /var/www folder so that I can keep track of it better. In the setting where I change the defult folder creation I get an error with:

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

Is there a way to easily fix this?


What distro are you using?

The problem you’re seeing is that suexec has a hard coded setting that has it using /home. It’s not possible to move it out of /home without recompiling suexec.

I believe Debian 5 and Ubuntu 10.04 would allow you to do that, though, by editing /etc/apache2/suexec/www-data, and changing the top line from /home to your desired directory.


Yes I am using Debian so that should work. Thanks!