Cannot install on Directadmin

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.

Hi

We supporting Centos 6 and 7 but you can try to install CWAF on Centos 5.

First try to install missing modules manually:

# cpan -i JSON LWP::Protocol::https YAML::Syck Template

Note: you will require gcc installed (yum install gcc make)

Then try to install CWAF:

# wget https://waf.comodo.com/cpanel/cwaf_client_install.sh
# bash ./cwaf_client_install.sh

Follow install instructions and CWAF will appear in directadmin plugins.

Regards, Oleg