Friday, March 1, 2013

Simple mod_ruid installation

Instead of suPhp I'm now using mod_ruid on my PHP websites on Ubuntu 12.
To install, I ran the following commands:
apt-get install libcap-dev

apt-get install gcc
apt-get install apache2-prefork-dev
wget http://sourceforge.net/projects/mod-ruid/files/mod_ruid2/mod_ruid2-0.9.7.tar.bz2
tar xjf mod_ruid2-0.9.7.tar.bz2
cd mod_ruid2-0.9.7/
apxs2 -a -i -l cap -c mod_ruid2.c
service apache2 restart

Then set the following directive in the sites-available configuration file:
RUidGid myuser mygroup