Page 1 of 1

ModSec Control dies with Perl module problems - [Solved]

Posted: 11 Jun 2013, 01:35
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.

Re: ModSec Control dies with Perl module problems

Posted: 11 Jun 2013, 01:40
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.

Re: ModSec Control dies with Perl module problems

Posted: 11 Jun 2013, 03:52
by ikillbill
same errors here~~

Re: ModSec Control dies with Perl module problems

Posted: 11 Jun 2013, 03:55
by ikillbill
and I notice that only centOS 5.X is affected, CentOS 6 works fine, hope this info helps

Re: ModSec Control dies with Perl module problems

Posted: 11 Jun 2013, 04:41
by bloatedstoat
Not here, we're running CENTOS 6.4 x86_64 with the problems listed above.

Re: ModSec Control dies with Perl module problems

Posted: 11 Jun 2013, 06:32
by bloatedstoat
Update the path to perl in /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi to:

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

Re: ModSec Control dies with Perl module problems

Posted: 11 Jun 2013, 06:48
by ikillbill
works, thanks :)

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

Posted: 11 Jun 2013, 08:31
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

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

Posted: 25 Jul 2013, 09:31
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! ;)