Hello,
I want to install mod_security in directadmin with WAF.
What I did:
./build modsecurity
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Syntax error on line 30 of /etc/httpd/conf/extra/httpd-modsecurity.conf: Syntax error on line 1 of /etc/modsecurity.d/comodo_rules.conf.main: Could not open configuration file /etc/cwaf/cwaf.conf: No such file or directory
then i did:
./build modsecurity_rules
LOG : Using PERL /usr/bin/perl
| LOG : Using CPAN /usr/bin/cpan
| LOG : PERL module JSON is NOT found
| LOG : PERL module LWP::Protocol::https is NOT found
| LOG : PERL module YAML::Syck is NOT found
| LOG : PERL module Template is NOT found
ERROR: CPAN is not configured!\nPlease run\n/usr/bin/cpan\nand configure it manually, then rerun this installation.
Can’t open /etc/cwaf/main.conf: No such file or directory.
Can’t open /etc/cwaf/main.conf: No such file or directory.
./build: line 13376: /usr/local/cwaf/scripts/updater.pl: No such file or directory
I did then /usr/bin/cpan
bash-3.2# /usr/bin/cpan
Terminal does not support AddHistory.
cpan shell – CPAN exploration and modules installation (v1.7602)
ReadLine support available (try ‘install Bundle::CPAN’)
And tried it again, but the same errors. How can I fix this?
Its on Centos 5.