Internal Server Error 500 why

I am getting this

Internal Server Error

500

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): subprocess exited with status 2 (ENOENT)

how to fix this :slight_smile:

Hello

We need more details about your system to analyse and resolve issue.

Please create WAF Support ticket: https://support.comodo.com/index.php?_m=tickets&_a=submit

and provide more details there:

  • cPanel version;
  • Apache and mod_security version;
  • WAF client version.

We will assist you through the Support system.

I am seeing the same issue on several servers. cPanel log shows the following:

Can’t locate Comodo/CWAF/Cpanel.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/whostmgr/docroot/cgi /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3 /opt/cpanel/perl5/514/site_lib/x86_64-linux-64int /opt/cpanel/perl5/514/site_lib .) at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 13.
BEGIN failed–compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 13.
Duplicate logaccess: at cpsrvd-ssl line 6400
main::body_internal_error(500, ‘No response from subprocess (/usr/local/cpanel/whostmgr/docroot/…’) called at cpsrvd-ssl line 6459
main::internal_error(‘No response from subprocess (/usr/local/cpanel/whostmgr/docroot/…’) called at cpsrvd-ssl line 9479
main::handle_subprocess_failure(3, undef, 2, ‘No response from subprocess (/usr/local/cpanel/whostmgr/docroot/…’) called at cpsrvd-ssl line 7712
main::subprocess_handler(‘/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi’, ‘IO::Handle=GLOB(0x34a47d0)’, ‘GLOB(0x34a1240)’, 0) called at cpsrvd-ssl line 7572
main::cgiHandler(‘docroot’, ‘/usr/local/cpanel/whostmgr/docroot’) called at cpsrvd-ssl line 6965
main::dodoc_whostmgrd() called at cpsrvd-ssl line 1824
main::dodoc(‘HASH(0xf6e150)’) called at cpsrvd-ssl line 1355
main::handle_one_connection() called at cpsrvd-ssl line 996
Internal Server Error: “GET /cpsess474383614/cgi/addon_cwaf.cgi HTTP/1.1” 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): subprocess exited with status 2 (ENOENT)

This occurred on both el5 and el6 centos systems.

/bin/cp -avf /var/cpanel/cwaf/modules/CPAN/lib/* /opt/cpanel/perl5/514/site_lib/

did the trick.

It seems COMODO Perl modules was not installed due to some reason.
Plugin can’t find these modules at Perl include path, which contain following folders:

/usr/local/cpanel
/usr/local/cpanel/whostmgr/docroot/cgi
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3
/opt/cpanel/perl5/514/site_lib/x86_64-linux-64int
/opt/cpanel/perl5/514/site_lib

To fix this issue, please, reinstall CWAF plugin or copy these Perl modules manually.