Strange CWAF cPanel plugin issue

Hi all,

First I had error 500 when accessing CWAF plugin in WHM. Then I tried to update:


/var/cpanel/cwaf/scripts/update-client.pl
Can't locate Cpanel/AdvConfig/apache.pm in [at]INC (you may need to install the Cpanel::AdvConfig::apache module) ([at]INC contains: /usr/local/cpanel /var/cpanel/cwaf/modules/CPAN/lib /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0 /opt/cpanel/perl5/528/site_lib/x86_64-linux-64int /opt/cpanel/perl5/528/site_lib) at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Cpanel.pm line 15.
BEGIN failed--compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Cpanel.pm line 15.
Compilation failed in require at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/if.pm line 15.
BEGIN failed--compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Platform.pm line 16.
Compilation failed in require at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/ClientAPI.pm line 17.
BEGIN failed--compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/ClientAPI.pm line 17.
Compilation failed in require at /var/cpanel/cwaf/scripts/update-client.pl line 14.
BEGIN failed--compilation aborted at /var/cpanel/cwaf/scripts/update-client.pl line 14. 

After that, I removed CWAF fully and installed again, but now it shows only partial server data and doesnt show any domains (screenshots attached).

I`m open for advises.

Edit: I did try this fix > https://forums.comodo.com/free-modsecurity-rules-comodo-web-application-firewall/cpanel-comodo-waf-error-500-internal-server-error-cant-locate-apachepm-t125005.0.html;msg893067#msg893067 but it didnt help

I’m having the same issue. WHM 84.0.9

same issue. WHM 84.0.9

Cause: In short, CWAF appears to depend on cPanel’s Apache distiller system, which was intentionally removed in version 84. This update is shown below in your cPanel Change Logs.

“Fixed case CPANEL-28581: Remove the apache conf distiller system.”

You can see the cases that have been integrated into cPanel at https://documentation.cpanel.net/display/CL/84+Change+Log

The Apache distiller is an system that was leftover from EasyApache3, and has reached end of life. Comodo themselves must update their plugin so that it does not rely on the old Apache Distiller.


Fix from other post on the forum

issue these

[root[at]masterhost scripts]# cd /var/cpanel/cwaf/tmp/
[root[at]masterhost tmp]# mkdir install
[root[at]masterhost tmp]# cd install
[root[at]masterhost install]# wget https://waf.comodo.com/cpanel/cwaf_client_install.sh
[root[at]masterhost install]# bash /var/cpanel/cwaf/tmp/install/cwaf_client_install.sh – --update --mode cpanel
[root[at]masterhost install]# cd …
[root[at]masterhost tmp]# rm -rf install
[root[at]masterhost tmp]# cd /var/cpanel/cwaf/scripts
[root[at]masterhost scripts]# ./updater.pl
[root[at]masterhost scripts]# ./update-client.pl

It will fix the errors you are getting.

This doesn’t fix the error where the apache version doesn’t show, and no vhosts are detected.

Guys, can we get any reply?

Is there any chance someone can assist with this problem?

I have the same issue:

It seems that after v84.0.13 update the CWAF plugin is broken, accessing it’s control panel returns error 500. Reinstall doesnt help

Browser error:

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): The subprocess reported error number 72,057,594,037,927,935 when it ended. The process dumped a core file.

tail -f /usr/local/cpanel/logs/error_log:

Can’t locate Cpanel/AdvConfig/apache.pm in @INC (you may need to install the Cpanel::AdvConfig::apache module) (@INC contains: /usr/local/cpanel /var/cpanel/cwaf/modules/CPAN/lib /usr/local/cpanel/whostmgr/docroot/cgi /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0 /opt/cpanel/perl5/528/site_lib/x86_64-linux-64int /opt/cpanel/perl5/528/site_lib) at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Cpanel.pm line 15.
BEGIN failed–compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Cpanel.pm line 15.
Compilation failed in require at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/if.pm line 15.
BEGIN failed–compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Platform.pm line 16.
Compilation failed in require at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/ClientAPI.pm line 17.
BEGIN failed–compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/ClientAPI.pm line 17.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 19.
BEGIN failed–compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 19.
[2019-11-21 13:18:18 +0100] info [whostmgrd] Internal Server Error: “GET /cpsess3925626570/cgi/addon_cwaf.cgi HTTP/1.1” 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): The subprocess reported error number 72,057,594,037,927,935 when it ended. The process dumped a core file

Server is Centos 7 CloudLinux:

Linux 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux

It will be a month in 2 days and still no issue.

Come on guys, we desperately need one :frowning:

Hi,
the issue is currently in the developers’ backlog and no ETA so far.
We suggest reinstalling plugin in standalone mode.

I’ve made a fix https://forums.comodo.com/free-modsecurity-rules-comodo-web-application-firewall/how-to-fix-comodo-waf-in-cpanel-version-1184x-t125225.0.html

Greetings SeeBeen your temp fix works a treat – cheers! :wink:

Any update on when this plugin will be sorted