In: , , ,
On: 2007 / 10 / 21 Viewed: 78266 times
Shorter URL for this post:

The following is for my own reference, borrowed from there and duplicated here because the original blog looks inactive and a fine candidate for deletion next time their domain or hosting will expire. No questions on this please, this is not my area of expertise at all.

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

  1. cd /usr/src
  2. apt-get build-dep apache2.2-common
  3. apt-get source apache2.2-common
  4. cd apache2-2.2.3/

Edit the build rules and change the suexec settings:

  1. vi debian/rules

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

  1. --with-suexec-docroot=/home/hosting \

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

  1. dch -i

Then build the package :

  1. dpkg-buildpackage

Now, in /usr/src/ we have all the .deb files we need to install. We dpkg -i the one we want (suexec is part of apache2.2-common and needs apache2.2-utils). All done.

Check new suexec compile options :

  1. /usr/lib/apache2/suexec2 -V

Shorter URL

Want to share or tweet this post? Please use this short URL:


This entry "Rebuilding suexec with Different Options on Ubuntu" was posted on 21/10/2007 at 7:27 pm and is tagged with , , ,
Watch this discussion : Comments RSS 2.0.

6 Blablas

  1. armouf says:

    Cool !

    I didnt get a word of what you wrote but im sure it rox ^^

  2. caker says:

    For anyone following this, after installing my newly created package, I had to correct the suexec binary permissions with:

    chmod 4750 /usr/lib/apache2/suexec


  3. Mebus says:

    Great ! Also worked on Debian 4.0 !!


  4. […] Ubuntu???Suexec?Docroot?/var/www????????? ???????/home/foo/public_html??suexec?????????,suexec???????????????? Rebuilding suexec with Different Options on Ubuntu « planetOzh??????? […]

  5. Tadaa says:


    Sa fonctionne parfaitement bien !

    Merci pour votre solution.

  6. […] instalar un sistema de administración de hosts virtual, es más difícil que instalar Gentoo (link a una correción que debí de […]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar and sign for a free account
Spam: Various spam plugins may be activated. I'll put pins in a Voodoo doll if you spam me.

Read more ?