Internal Server Error after WHM update

Jeet

Member
May 20, 2012
6
0
51
cPanel Access Level
Root Administrator
Today I noticed that WHM on my server got updated to WHM 11.36 from 11.34. But now, two of my WHM plugins are not working. They are showing internal server error.

One plugin shows:

Internal Server Error
500
No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_lview.cgi) with exit signal: 9​

The other one shows:

Internal Server Error
500
No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_modsec.cgi) with exit signal: 2​

Can anyone help to fix these issues? :(

Thanks,
 

CitizenK

Well-Known Member
Jun 5, 2012
64
1
58
On The Road
cPanel Access Level
Root Administrator
Hello,

In short, we made a few major changes in 11.36 and as a result WHM plugins will need to be updated for 11.36. You will want to check to see if there are any updates for your plugins.

We updated perl to 5.14, and WHM will no longer use the system perl, but rather it's own perl interpater located at /usr/local/cpanel/3rdparty/bin/perl . This update comes with the switch to rpm distribution. Additionally we also removed cpphp (cPanel's internal PHP for WHM) and now WHM is executed using cPanel's php (/usr/local/cpanel/3rdparty/bin/php).

Because of these changes to both php and perl, WHM plugins will need to be updated. You can learn more about these changes, and learn how to fix your scripts by following the links below.

cPanel & WHM 11.36 Release Notes
Prepare Your Perl Scripts for 11.36 | cPanel, Inc.
cPanel & WHM 11.36, CURRENT Tier Release | cPanel, Inc.
 

CitizenK

Well-Known Member
Jun 5, 2012
64
1
58
On The Road
cPanel Access Level
Root Administrator
cPanel's Modsecurity plugin is released with easyapache and not with WHM/cPanel. We are aware of this issue with the plugin and have internal case 63284 open on the issue. I believe that this issue has been addressed in a pending release of easyapache.
 
Last edited:

ScottTh

Well-Known Member
Jan 28, 2013
157
2
18
Houston, TX
cPanel Access Level
Root Administrator
cPanel's Modsecurity plugin is released with easyapache and not with WHM/cPanel. We are aware of this issue with the plugin and have internal case 63284 open on the issue. I believe that this issue has been addressed in a pending release of easyapache.
You are right cpCitizenK. The EasyApache team has identified the fix and it will be part of the pending EasyApache 3.18 release.
 

docbreed

Well-Known Member
Jul 18, 2005
57
0
156
I had the same issues before this posting, I checked my "perl -V" and it was 5.8.8 - so i went ahead and:
Code:
wget http://layer1.cpanel.net/perl588installer.tar.gz
tar xfvz perl588installer.tar.gz
cd perl588installer
./install
Now that i seen this post i would like to update, how do i do i update to the 5.14?


Hello,

In short, we made a few major changes in 11.36 and as a result WHM plugins will need to be updated for 11.36. You will want to check to see if there are any updates for your plugins.

We updated perl to 5.14, and WHM will no longer use the system perl, but rather it's own perl interpater located at /usr/local/cpanel/3rdparty/bin/perl . This update comes with the switch to rpm distribution. Additionally we also removed cpphp (cPanel's internal PHP for WHM) and now WHM is executed using cPanel's php (/usr/local/cpanel/3rdparty/bin/php).

Because of these changes to both php and perl, WHM plugins will need to be updated. You can learn more about these changes, and learn how to fix your scripts by following the links below.

cPanel & WHM 11.36 Release Notes
Prepare Your Perl Scripts for 11.36 | cPanel, Inc.
cPanel & WHM 11.36, CURRENT Tier Release | cPanel, Inc.
 

docbreed

Well-Known Member
Jul 18, 2005
57
0
156
Another issue related:

/etc/cron.hourly/modsecparse.pl:

Can't locate lib/restrict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/lib.pm line 13.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/lib.pm line 13.
Compilation failed in require at /etc/cron.hourly/modsecparse.pl line 7.
 

CitizenK

Well-Known Member
Jun 5, 2012
64
1
58
On The Road
cPanel Access Level
Root Administrator
An autofixer has been published to repair some third party scrips and the mod_security plugin. This autofixer will fix some of the 500 errors inside WHM plugins.

You can run the autofixer from the following url, replacing server.hostname.tld with your server's ip or hostname.
Code:
https://server.hostname.tld:2087/scripts/autorepair_fix_shebangs
This script will update the shebang lines as mentioned in Prepare Your Perl Scripts for 11.36
 

Jeet

Member
May 20, 2012
6
0
51
cPanel Access Level
Root Administrator
An autofixer has been published to repair some third party scrips and the mod_security plugin. This autofixer will fix some of the 500 errors inside WHM plugins.

You can run the autofixer from the following url, replacing server.hostname.tld with your server's ip or hostname.
Code:
https://server.hostname.tld:2087/scripts/autorepair_fix_shebangs
This script will update the shebang lines as mentioned in Prepare Your Perl Scripts for 11.36
Thanks! Running the autofixer fixed both the issues for me.
 

bluerayconcepts

Active Member
Mar 24, 2013
32
0
6
Yuba City, CA
cPanel Access Level
Root Administrator
I have log viewer running on two other 11.36 servers but when I went to install it on a new fresh server it gives the following error:

internal server error 500 - No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_lview.cgi) with exit signal: 2

I have tried running the shebangs script but it just shows a blank screen.

Perl version on my other two servers is 5.8.8 and Perl version on the new server is 5.10.1

Any input would be welcome
 

sford999

Member
Apr 20, 2004
20
0
151
UK
cPanel Access Level
Root Administrator
Open addon_lview.cgi (pico etc...)

on the very first line it says

#!/usr/bin/perl

Replace that with

#!/usr/local/cpanel/3rdparty/bin/perl

Save the file and logview will work again