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).
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.”
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.
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