Rebuilding suexec with Different Options on Ubuntu

Posted: July 22nd, 2009 | Author: adq890 | Filed under: Linux, configuration | Tags: | 1 Comment »

Step 1:

Backup the current suexec. Then download stuff and go into the newly created directory:

#cd /usr/src
#sudo apt-get build-dep apache2.2-common
#sudo apt-get source apache2.2-common
#cd apache2-2.2.X/

Step 2 : Edit the build rules and change the suexec settings:

#sudo vi debian/rules

Step 3 :

Near the top are located the defaults, AP2_COMMON_CONFARGS. Find the references to suexec and modify. For instance:

By default :

–with-suexec-docroot=/var/www \

Change to :

–with-suexec-docroot=/home \

( If this will required to operate the Virtualmin)

Step 4:

Increment the build number and build notes with comments telling when and why, with dch (needs devscripts) :

#dch -i

Step 5: Then build the package :

#sudo dpkg-buildpackage

Step 6 :

Now, in /usr/src/ or (temp folder) we have all the .deb files we need to install.

#sudo dpkg -i apache2.2-common

#sudo dpkg -i apache2.2-utils

Step 7:

Check new suexec compile options :

#/usr/lib/apache2/suexec2 -V

DONE !!!

Blog Widget by LinkWithin

One Comment on “Rebuilding suexec with Different Options on Ubuntu”

  1. 1 Mario said at 7:52 pm on January 7th, 2010:

    It doesn’t work when I try to incremente the build number. I had to install first devscripts it works fine, but after this try to increase the build number and I get an error #1. Any idea? Thanx.


Leave a Reply