Friday 27 September 2013

HTTP error 401

Solution1. Please check the csf and /etc/hosts.allow file and make sure that they are not blocking cpanel.

If problem exists.

2. Follow the following steps .
mv /usr/local/cpanel/base/3rdparty/Logaholic /usr/local/cpanel/base/3rdparty/Logaholic.bk

/usr/local/cpanel/bin/update-logaholic –force

service cpanel restart

Thursday 19 September 2013

Installing CPANEL on your VPS or Dedicated Server

Make sure that your VPS server has enough resources to be able to run Cpanel. Minimum of 512 MB of memory to run Cpanel (1GB is recommended).

Before installing Cpanel, its good to setup a basic clean compile environment and get your server up to date with the latest patches and software updates.


# yum install selinux coreutils binutils make dialog gcc gcc-* glib*
# yum install libexi* libjpe* libpng* gifl* freetype curl curl-* xmlrpc
# yum upgrade kernel*
# yum update

Once you got the basics, time to install Cpanel/WHM:
# cd
# wget http://layer1.cpanel.net/cpanel-universal-install.sea
# chmod 700 ./cpanel-universal-install.sea

Test your installation by checking this URL;

http://xxx.xxx.xxx.xxx:2086/

Tuesday 10 September 2013

ConfigServer Internal Server Error 500, after cPanel update: fixed

After the WHM/cPanel update to 11.38 you might get the an error like this in your browser:

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

And something like this in /usr/local/cpanel/logs/error_log:

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 25.
BEGIN failed–compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi line 25.
For help, please send mail to this site’s webmaster, giving this error message and the time and date of the error.

when going to ConfigServer cPanel plugins in WHM like:

ConfigServer Explorer
ConfigServer Mail Manage
ConfigServer Mail Queues
ConfigServer ModSecurity Control
ConfigServer Security & Firewall

This happens if  the installed ConfigServer scripts on a cPanel/WHM server don’t get updated.

The solution for this error is simple.

To resolve this error simply SSH into your server as a root user and run the following command from command line:
curl -s configserver.com/free/csupdate | perl

This script will update: cmm, cmc, cmq, cse, csf, cxs, msinstall, msfe