How to recompile SuExec

3 posts / 0 new
Last post
#1 Sat, 06/20/2009 - 21:16
pcm2a

How to recompile SuExec

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?

Thanks!

Sun, 06/21/2009 - 00:11
pcm2a

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.

Wed, 07/01/2009 - 01:46 (Reply to #2)
Joe
Joe's picture

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!

Topic locked