Directadmin plugin issue

Hello,

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


Can't locate Comodo/CWAF/Main.pm 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/index.pl line 10.
BEGIN failed--compilation aborted at /usr/local/directadmin/plugins/comodo_waf/admin/index.pl line 10.

Regards,

It’s not DirectAdmin or CWAF issue.

Please, read this topic:
https://www.centos.org/forums/viewtopic.php?f=48&t=49865&p=211831

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”;