After upgrading from Ubuntu 12.04 LTS to 14.04 LTS CWAF is not working anymore.
When I run CWAF in WEBMIIN the following error happens:
Error - Perl execution failed
Can’t locate Comodo/CWAF/Main.pm in @INC (you may need to install the Comodo::CWAF::Main module) (@INC contains: /usr/share/webmin /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl . /usr/share/webmin/ …) at /usr/share/webmin/cwaf/index.cgi line 14.
BEGIN failed–compilation aborted at /usr/share/webmin/cwaf/index.cgi line 14.
I tried to reinstall CWAF but also got errors.
sh cwaf_client_install.sh
Verifying archive integrity… All good.
Uncompressing Comodo WAF Client Installer v2.13…
Checking pre-requisites
BASH bin OK (/bin/bash)
CPAN bin OK (/usr/bin/cpan)
GCC bin OK (/usr/bin/gcc)
MAKE bin OK (/usr/bin/make)
STRINGS bin OK (/usr/bin/strings)
Running installer
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
expr: syntax error
expr: syntax error
I checked it also by looking in the server and the folder 5.18.2 is indeed not there.
How can we fix this Oleg? I hope it does not happen with everyone. Upgrading from Ubuntu 12.04 to 14.04 caused several problems. I hope you have a solution to get CWAF running again because the website is not protected anymore
I am only afraid it is not done yet, because after succesfully have done what you wrote, I see now other errors.
Error - Perl execution failed
Can’t locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /usr/share/webmin /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl . /usr/share/webmin/ …) at /usr/local/share/perl/5.18.2/Comodo/CWAF/ClientAPI.pm line 10.
BEGIN failed–compilation aborted at /usr/local/share/perl/5.18.2/Comodo/CWAF/ClientAPI.pm line 10.
Compilation failed in require at /usr/share/webmin/cwaf/index.cgi line 15.
BEGIN failed–compilation aborted at /usr/share/webmin/cwaf/index.cgi line 15.
I installed then:
sudo cpan JSON
an that was done with success and without errors
But new errors:
Error - Perl execution failed
Can’t locate Template.pm in @INC (you may need to install the Template module) (@INC contains: /usr/share/webmin /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl . /usr/share/webmin/ …) 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/share/webmin/cwaf/index.cgi line 21.
Then I upgraded perl to see if it helped:
$ sudo cpan
cpan[1]> upgrade
Took a long time but no difference
Yes you are very right. It is a shame but the whole server was with errors after the upgrade to 14.04.
A fresh install was the best solution but anyway, I am happy it works again thanks to you!!!