Manual Installation - asklinux/rimau-waf GitHub Wiki

Clone the project

git clone https://github.com/asklinux/rimau-waf.git

move to usr/share folder

mv rimau-waf /usr/share/rimauwaf

cd /usr/share/rimauwaf

change name source dir to web

mv source web

**Run bash script to install EPEL repos **

./usr/share/rimauwaf/setup-ius.sh

Instal the dependency pakage for rimau waf

$ yum install nginx php70u php70u-fpm php70u-sqlite sqlite php70u-sqlite3 httpd mod_security policycoreutils-python

**Change linux sudo configure **

echo 'Defaults:php-fpm !requiretty' >> /etc/sudoers

echo "User_Alias WWW_USER2 = php-fpm" >> /etc/sudoers

echo "Cmnd_Alias WWW_COMMANDS2 = /usr/bin/systemctl,/usr/bin/ln,/usr/bin/unlink,/usr/share/rimauwaf/run.sh,/usr/bin/tail,/usr/bin/sed,/usr/bin/cat,/usr/bin/grep,/usr/sbin/apachectl" >> /etc/sudoers

echo "WWW_USER2 localhost = (ALL) NOPASSWD:WWW_COMMANDS2" >> /etc/sudoers

update selinux permission

semanage permissive -a httpd_t

change nginx configuration

vi /etc/nginx/nginx.conf

change port to 9090 and root dir to /usr/share/rimauwaf

#systemctl enable nginx