ModSec Control dies with Perl module problems - [Solved]

These forums are not for questions about ModSecurity, just the cmc script itself
Post Reply
bloatedstoat
Junior Member
Posts: 12
Joined: 11 Jun 2013, 01:22

ModSec Control dies with Perl module problems - [Solved]

Post by bloatedstoat »

Within the past week ModSec Control on our cPanel server WHM 11.38.0 (build 16) no longer works. When start is attempted we get:

Can't locate JSON/XS.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/JSON.pm line 15.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/JSON.pm line 15.
Compilation failed in require at /usr/local/cpanel/Cpanel/Template/Plugin/JSON.pm line 12.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Template/Plugin/JSON.pm line 12.
Compilation failed in require at /usr/local/cpanel/Cpanel/Template.pm line 53.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Template.pm line 53.
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/addon_cmc.cgi line 24.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi line 24.

In addition we have MailManage, MailQueues and Explorer which also die with :

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cse.cgi): subprocess exited with status 2 in each case.

Security&Firewall is unaffected and is running happily.

Any advice or recommendations?

Note: I'd rather not update any Perl modules on the cli for this production server, prefer to leave that to cPanel's own update process.
Last edited by bloatedstoat on 11 Jun 2013, 07:10, edited 2 times in total.
bloatedstoat
Junior Member
Posts: 12
Joined: 11 Jun 2013, 01:22

Re: ModSec Control dies with Perl module problems

Post by bloatedstoat »

Apologies, I note redexpertos made a post about WHM 11.38 that is identical to my own although the subject line did not appear to relate to my own problems despite them being the same.
ikillbill
Junior Member
Posts: 21
Joined: 02 May 2009, 05:36

Re: ModSec Control dies with Perl module problems

Post by ikillbill »

same errors here~~
ikillbill
Junior Member
Posts: 21
Joined: 02 May 2009, 05:36

Re: ModSec Control dies with Perl module problems

Post by ikillbill »

and I notice that only centOS 5.X is affected, CentOS 6 works fine, hope this info helps
bloatedstoat
Junior Member
Posts: 12
Joined: 11 Jun 2013, 01:22

Re: ModSec Control dies with Perl module problems

Post by bloatedstoat »

Not here, we're running CENTOS 6.4 x86_64 with the problems listed above.
bloatedstoat
Junior Member
Posts: 12
Joined: 11 Jun 2013, 01:22

Re: ModSec Control dies with Perl module problems

Post by bloatedstoat »

Update the path to perl in /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi to:

#!/usr/local/cpanel/3rdparty/bin/perl
ikillbill
Junior Member
Posts: 21
Joined: 02 May 2009, 05:36

Re: ModSec Control dies with Perl module problems

Post by ikillbill »

works, thanks :)
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Re: ModSec Control dies with Perl module problems - [Solved]

Post by Sarah »

The simple solution to this is to use the update script in this blog post, it will fix all your configserver scripts:

http://blog.configserver.com/index.php?itemid=738
egrueda
Junior Member
Posts: 10
Joined: 16 Aug 2012, 15:19

Re: ModSec Control dies with Perl module problems - [Solved]

Post by egrueda »

Sarah wrote:The simple solution to this is to use the update script in this blog post, it will fix all your configserver scripts: http://blog.configserver.com/index.php?itemid=738
Thanks, Sarah!
Exact link is http://blog.configserver.com/?p=12
It solved my problem, didn't evek know that scritp exists, thanks very much! ;)
Post Reply