Directadmin plugin issue


I have installed CWAF on a DirectAdmin with CentOS 7.x and I’m facing the following issue:

Can't locate Comodo/CWAF/ in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/directadmin/plugins/comodo_waf/admin/ line 10.
BEGIN failed--compilation aborted at /usr/local/directadmin/plugins/comodo_waf/admin/ line 10.


It’s not DirectAdmin or CWAF issue.

Please, read this topic:

CentOS 7 discurage using of CPAN, so all CPAN modules installed in user home dir.
CWAF installed from root account, so CWAF Perl modules installed to /root/perl5/lib/perl5
To allow Perl find CWAF modules you should add this path to PERL5LIB environment variable.

For example you can add this to /root/.bashrc

export PERL5LIB=“/root/perl5/lib/perl5:$PERL5LIB”;