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.
ModSec Control dies with Perl module problems - [Solved]
-
- Junior Member
- Posts: 12
- Joined: 11 Jun 2013, 01:22
ModSec Control dies with Perl module problems - [Solved]
Last edited by bloatedstoat on 11 Jun 2013, 07:10, edited 2 times in total.
-
- Junior Member
- Posts: 12
- Joined: 11 Jun 2013, 01:22
Re: ModSec Control dies with Perl module problems
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
same errors here~~
Re: ModSec Control dies with Perl module problems
and I notice that only centOS 5.X is affected, CentOS 6 works fine, hope this info helps
-
- Junior Member
- Posts: 12
- Joined: 11 Jun 2013, 01:22
Re: ModSec Control dies with Perl module problems
Not here, we're running CENTOS 6.4 x86_64 with the problems listed above.
-
- Junior Member
- Posts: 12
- Joined: 11 Jun 2013, 01:22
Re: ModSec Control dies with Perl module problems
Update the path to perl in /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi to:
#!/usr/local/cpanel/3rdparty/bin/perl
#!/usr/local/cpanel/3rdparty/bin/perl
Re: ModSec Control dies with Perl module problems
works, thanks
Re: ModSec Control dies with Perl module problems - [Solved]
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
http://blog.configserver.com/index.php?itemid=738
Re: ModSec Control dies with Perl module problems - [Solved]
Thanks, Sarah!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
Exact link is http://blog.configserver.com/?p=12
It solved my problem, didn't evek know that scritp exists, thanks very much!