Trying to install COMODO Waf

rowebca

New member
Joined
Jan 3, 2020
Messages
15
Location
Montreal, QC, Canada
After installation I can see the plugin in DA "Extra Features" menu but when I load it I see :

Code:
Can't locate JSON.pm in @INC (@INC contains: /usr/local/cwaf/modules/CPAN/lib /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/cwaf/modules/CPAN/lib/Comodo/CWAF/ClientAPI.pm line 10.
BEGIN failed--compilation aborted at /usr/local/cwaf/modules/CPAN/lib/Comodo/CWAF/ClientAPI.pm line 10.
Compilation failed in require at /usr/local/directadmin/plugins/comodo_waf/admin/index.pl line 12.
BEGIN failed--compilation aborted at /usr/local/directadmin/plugins/comodo_waf/admin/index.pl line 12.
So this is firsttime for me using DA but it looks great to perate...
Maybe somebody can help me with this.

Regards,
George B.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,791
Location
LT, EU
It looks like missing JSON perl module. Try:
Code:
yum -y install perl-JSON
 

rowebca

New member
Joined
Jan 3, 2020
Messages
15
Location
Montreal, QC, Canada
I did that now it is giving me something else:

Code:
Can't locate Template.pm in @INC (@INC contains: /usr/local/cwaf/modules/CPAN/lib /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/cwaf/web/cwaf_sharedlib.pl line 4.
BEGIN failed--compilation aborted at /usr/local/cwaf/web/cwaf_sharedlib.pl line 4.
Compilation failed in require at /usr/local/directadmin/plugins/comodo_waf/admin/index.pl line 16.
I tried "cpan Template" but still have this.

Regards
George B.
 

rowebca

New member
Joined
Jan 3, 2020
Messages
15
Location
Montreal, QC, Canada
Thanks for helping me with this.

I Tried that and the result is:

Code:
[root@astral ~]# yum -y install perl-Template
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.atlanticmetro.net
 * extras: mirror.atlanticmetro.net
 * updates: mirror.metrocast.net
No package perl-Template available.
Error: Nothing to do
Regards,
George B.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,791
Location
LT, EU
Try with -* at the end :) As it has multiple Template packages
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,791
Location
LT, EU
Weird, it should be in default repo. What's the output of:
Code:
yum whatprovides */Template.pm
 

rowebca

New member
Joined
Jan 3, 2020
Messages
15
Location
Montreal, QC, Canada
This is the result:
Code:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ewr.edge.kernel.org
 * epel: mirror.csclub.uwaterloo.ca
 * extras: mirror.atlanticmetro.net
 * updates: mirrors.rit.edu
debconf-1.5.69-2.el7.noarch : Debian configuration management system
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Debconf/Template.pm



perl-CGI-FormBuilder-3.0800-5.el7.noarch : Easily generate and process stateful
                                         : forms
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/CGI/FormBuilder/Template.pm



perl-Config-Generator-1.0-1.el7.noarch : Shared variables for the
                                       : Config::Generator modules
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Config/Generator/Template.pm



perl-HTML-Template-2.95-1.el7.noarch : Perl module to use HTML Templates
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/HTML/Template.pm



perl-Mojolicious-7.94-2.el7.noarch : A next generation web framework for Perl
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Mojo/Template.pm



perl-SOAP-WSDL-3.003-6.el7.noarch : Perl module for SOAP with WSDL support
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/SOAP/WSDL/Generator/Template.pm



perl-Syntax-Highlight-Engine-Kate-0.07-5.el7.noarch : Port to Perl of the syntax
     ...: highlight engine of the Kate text editor
Repo        : base
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate/Template.pm


perl-Template-Toolkit-2.24-5.el7.x86_64 : Template processing system
Repo        : base
Matched from:
Filename    : /usr/lib64/perl5/vendor_perl/Template.pm



perl-Text-Template-1.45-12.el7.noarch : Expand template text with embedded Perl
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Text/Template.pm



pisg-0.73-11.el7.noarch : IRC Statistics generator
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Pisg/Parser/Format/Template.pm



samba-pidl-4.9.1-6.el7.noarch : Perl IDL compiler
Repo        : base
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Parse/Pidl/Samba4/Template.pm



sympa-6.2.48-3.el7.x86_64 : Powerful multilingual List Manager
Repo        : epel
Matched from:
Filename    : /usr/share/sympa/lib/Sympa/Template.pm
Filename    : /usr/share/sympa/lib/Sympa/Aliases/Template.pm
Filename    : /usr/share/sympa/lib/Sympa/Message/Template.pm

One more thing, not related with this subject. I tried to install ClamAV and after a successful installation the server went crazy loading and I had to uninstall this. Can you help me with this, maybe I am doing something wrong?

I need this for Exim and CXS and Mod_Security.

Regards,
George B.
 
Top