cPanel 11.38 perl issues, 500 internals in WHM

IronChroni

Registered
Mar 12, 2013
3
0
1
cPanel Access Level
Root Administrator
Hello,

Just reporting an issue I haven't found a solution to.

perl -version

This is perl 5, version 14, subversion 3 (v5.14.3) built for x86_64-linux-64int
(with 4 registered patches, see perl -V for more detail)

cat /etc/redhat-release
CentOS release 5.9 (Final)

Going to Add IP to Firewall gets this:

Internal Server Error
500
No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/apfadd/add.cgi): subprocess exited with status 2

CDB_File could not be loaded. You may see pages in English rather than in your desired locale at /usr/local/cpanel/Cpanel/Locale/Utils.pm line 11.
Can't locate Template/Constants.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/cpanel/Cpanel/Template.pm line 50.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Template.pm line 50.
Compilation failed in require at /usr/local/cpanel/Whostmgr/HTMLInterface.pm line 12.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/HTMLInterface.pm line 12.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/apfadd/add.cgi line 10.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/apfadd/add.cgi line 10.
Internal Server Error: "POST /cpsess8525749186/cgi/apfadd/add.cgi?post_login=71395640786529 HTTP/1.1" 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/apfadd/add.cgi): subprocess exited with status 2


cPanel Memory set to unlimited.
Ran upcp --force
Had to reinstall perl from yum just to get upcp to work.
Before was version 5.8.8, now 5.14
Any suggestions are appreciated as the 500 Internals with the exact same errors persist.
 

ES - George

Well-Known Member
PartnerNOC
Jun 12, 2011
178
25
78
UK
cPanel Access Level
DataCenter Provider
Twitter
Not familiar with apfadd whatever that is, but it sounds like it needs to be updated to work the recent changes in cPanel & WHM.

This post may or may not be helpful to you:
Re: Third-party Perl scripts not working in 11.36 - cPanel Forums

You might also check with the developer of the plugin to inquire about an update to the script.
It's Advanced Policy Firewall.

OP: Remove and reinstall the plugin and everything will be good - worked every time for me on a number of different plugins.
 

IronChroni

Registered
Mar 12, 2013
3
0
1
cPanel Access Level
Root Administrator
Reinstalling the plug in did not work, but after further investigating errors, easiest method was to fix the path to perl;

rm -f /usr/bin/perl /usr/local/bin/perl
ln -s /usr/local/cpanel/3rdparty/bin/perl /usr/bin/perl
ln -s /usr/bin/perl /usr/local/bin/perl

Resolved the issue.