In: , , ,
On: 2007 / 10 / 21 Viewed: 39021 times
Shorter URL for this post: http://ozh.in/g0

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:

CODE:
  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:

CODE:
  1. vi debian/rules

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

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

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

CODE:
  1. dch -i

Then build the package :

CODE:
  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 :

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

Related posts

Shorter URL

Want to share or tweet this post? Please use this short URL: http://ozh.in/g0

Metastuff

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. You can trackback this post from your own site

6 Blablas

  1. 1
    armouf France »
    thought, on 22/Oct/07 at 9:29 am # :

    Cool !

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

  2. 2
    caker United States »
    wrote, on 16/Jan/08 at 10:13 pm # :

    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

    Thanks!
    -Chris

  3. 3
    Mebus Germany »
    wrote, on 29/Sep/08 at 5:25 pm # :

    Great ! Also worked on Debian 4.0 !!

    Mebus

  4. 4
    Happy my life » suexec?????????? Japan »
    pingback on 23/Oct/08 at 7:44 pm # :

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

  5. 5
    Tadaa Ukraine »
    thought, on 29/Oct/08 at 3:04 pm # :

    Bonjour,

    Sa fonctionne parfaitement bien !

    Merci pour votre solution.

  6. 6
    Die Ketzerei » ¿Demasiado tonto s... United States »
    pingback on 14/Feb/09 at 2:19 am # :

    [...] 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

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.

Read more ?

Close
E-mail It