The 500 internal server on WHM Comodo plugin with below Error Message:
[2017-03-04 10:55:43 -0300] info [xml-api] Using new TIERS.json version file
Can't locate whmlib.pm in @INC (you may need to install the whmlib module) (@INC contains:
/usr/local/cpanel /usr/local/cpanel/whostmgr/docroot/cgi /usr/local/cpanel/3rdparty/perl/524/lib64/
perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib /
usr/local/cpanel/3rdparty/perl/524/lib64/perl5/5.24.1/x86_64-linux-64int /usr/local/cpanel/
3rdparty/perl/524/lib64/perl5/5.24.1 /opt/cpanel/perl5/524/site_lib/x86_64-linux-64int /opt/cpanel/
perl5/524/site_lib) at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 9.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 9.
[2017-03-04 10:55:46 -0300] info [whostmgrd] Internal Server Error: "GET /cpsess1341326746/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 2 when it ended.
Can't locate whmlib.pm in @INC (you may need to install the whmlib module) (@INC contains:
/usr/local/cpanel /usr/local/cpanel/whostmgr/docroot/cgi /usr/local/cpanel/3rdparty/perl/524/lib64/
perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib /
usr/local/cpanel/3rdparty/perl/524/lib64/perl5/5.24.1/x86_64-linux-64int /usr/local/cpanel/
3rdparty/perl/524/lib64/perl5/5.24.1 /opt/cpanel/perl5/524/site_lib/x86_64-linux-64int /opt/cpanel/
perl5/524/site_lib) at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 9.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 9.
[2017-03-04 10:55:46 -0300] info [whostmgrd] Internal Server Error: "GET /cpsess1341326746/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 2 when it ended.
Solution:
root@cloud [/]# /var/cpanel/cwaf/scripts/update-client.pl
Available new client version 2.20.1
script file downloaded OK
Running update command: bash /var/cpanel/cwaf/tmp/install/cwaf_client_install.sh -- --update --mode auto --path=/var/cpanel/cwaf
Verifying archive integrity... All good.
Uncompressing Comodo WAF Client Installer v2.20.1.........................................................................................................................................................................................................................
------------------------------------------------------
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
------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
Update succesful!
update process finished!
root@cloud [/]# /var/cpanel/cwaf/scripts/update-client.pl
Available new client version 2.20.1
script file downloaded OK
Running update command: bash /var/cpanel/cwaf/tmp/install/cwaf_client_install.sh -- --update --mode auto --path=/var/cpanel/cwaf
Verifying archive integrity... All good.
Uncompressing Comodo WAF Client Installer v2.20.1.........................................................................................................................................................................................................................
------------------------------------------------------
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
------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
+------------------------------------------------------
Update succesful!
update process finished!
That's it!