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 !!!
0 comments:
Post a Comment