Installing on CentOS
If you want to manually install the module for the apache webserver:
– download the tar.gz file from sourceforge (link: download)
– extract files from archive: tar jxvf mod_ruid2-0.9.8.tar.bz2
– cd mod_ruid2-0.9.8
– compile the module (which apxs
-a -i -l cap -c mod_ruid2.c)
It is possible to get an error like this while compiling:
1 2 3 4 | In file included from /usr/include/sys/capability.h:34, from mod_ruid2.c:51: /usr/include/linux/capability.h:70: error: expected specifier-qualifier-list before ‘__le32’ apxs:Error: Command failed with rc=65536 |
In this situation, first of all, check if you have libcap and libcpa-devel installed on your system:
# rpm -qa | grep libcap
If libcap is installed and you still get that error:
mod_ruid2: Compilation error fix
1 2 3 4 5 | - edit mod_ruid2.c file - search for: #include <sys/capability.h> - add above that line: #include <linux/types.h> - save the file after modification - recompile: `which apxs` -a -i -l cap -c mod_ruid2.c |
The mod_ruid2.so module is automatically copied to apache module directory. A simple /etc/init.d/httpd restart will start your apache webserver with the module activated.
2 Comments
THANK YOU! i had to modify mod_ruid2.c file! thank you again!
No problem. Glad that it helped you out!