1. First install its dependencies:
yum install libcap libcap-devel -y
2. Download lastest version of mod_ruid2 and unpack it
wget http://sourceforge.net/projects/mod-ruid/files/latest/download
tar xvjf mod_ruid2-0.9.8.tar.bz2
cd mod_ruid2-0.9.8
/opt/lampp/bin/apxs -a -i -l cap -c mod_ruid2.c
If it installed correctly, it should say it added a line to the httpd.conf. You can easily check if it's indeed there by the following command.
grep mod_ruid2 /opt/lampp/etc/httpd.conf
it should output something similar as
LoadModule ruid2_module modules/mod_ruid2.so
3. Configure virtual host
vi /opt/lampp/etc/extra/httpd-vhosts.conf
<VirtualHost *:80>
...
<IfModule mod_ruid2.c>
RMode config
RUidGid 10tut 10tut
</IfModule>
</VirtualHost>
Không có nhận xét nào:
Đăng nhận xét