This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
I would like to recompile the stock suexec or Virtualmin's copy of suexec to add /var/www or /var/www/vhosts in there. What is the simplest way of accomplishing this?
What I have ended up doing was downloading the apache source, httpd-2.2.11.tar.gz. Ubuntu 8.04 uses 2.2.08 but that probably doesn't matter.
I compiled it with:
./configure --enable-suexec --with-suexec-docroot=/var/www --with-suexec-userdir=httpdocs --with-suexec-caller=www-data --with-suexec-logfile=/var/log/apache2/suexec.log
Then I did a make, and used the copy in support/suexec. Things seem to be working great now!
Maybe Virtualmin should package the copy of the suexec from newer version of Ubuntu, apache2-suexec-custom. It looks like that one is customizable with a config file. That way us users could change the config and still be able to uprade Virtualmin.
So I know this is an old thread, but I was just working on getting my maibox down to zero again, and I thought it work mentioning that the easiest path to getting suexec docroot set to /var/www would be to install the stock apache2-suexec from Ubuntu. ;-)
As for suexec-custom, yes, I agree. I've switched to it in the Debian 5.0 version of the install script. It's definitely nicer to go that route.
What I have ended up doing was downloading the apache source, httpd-2.2.11.tar.gz. Ubuntu 8.04 uses 2.2.08 but that probably doesn't matter.
I compiled it with: ./configure --enable-suexec --with-suexec-docroot=/var/www --with-suexec-userdir=httpdocs --with-suexec-caller=www-data --with-suexec-logfile=/var/log/apache2/suexec.log
Then I did a make, and used the copy in support/suexec. Things seem to be working great now!
Maybe Virtualmin should package the copy of the suexec from newer version of Ubuntu, apache2-suexec-custom. It looks like that one is customizable with a config file. That way us users could change the config and still be able to uprade Virtualmin.
So I know this is an old thread, but I was just working on getting my maibox down to zero again, and I thought it work mentioning that the easiest path to getting suexec docroot set to /var/www would be to install the stock apache2-suexec from Ubuntu. ;-)
As for suexec-custom, yes, I agree. I've switched to it in the Debian 5.0 version of the install script. It's definitely nicer to go that route.
--
Check out the forum guidelines!