Wednesday, July 18, 2007

cPanel 11 updates

Since the release of cPanel 11, we have noticed a number of instances where the cPanel 11 release update failed to complete. The symptoms can vary, including blank pages being drawn from certain features, with the most commonly reported issue being that account creations are existing prematurely, claiming immediately that the account creation is complete.

Additionally, account creation, suspension, unsuspension and removal may fail. This is occurring because /scripts/update now was executed (or run from update system software in whm) without a subsequent call to upcp. As a result, /scripts is updated to the latest available modules available with cPanel 11, while the rest of the system remains configured for the older builds.

# You can confirm whether the case is this on your system by executing below command from the commend line:

perl -c /scripts/wwwacct


# If this command returns errors, then you will need to update. Here is what you can expect to see if a problem exists:

root@localhost [~]# perl -c /scripts/wwwacct

Can't locate Whostmgr/Accounts/Create.pm in @INC (@INC contains:

/usr/local/cpanel /scripts /usr/lib/perl5/5.8.7/i686-linux

/usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux

/usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5

/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3

/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1

/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at

/scripts/wwwacct line 10.

BEGIN failed--compilation aborted at /scripts/wwwacct line 10.

root@localhost [~]#


Here are the Suggested Fixes:

# If you wish to stay with cPanel 10.x, you will need to execute the following commands from the command line:

/usr/local/cpanel/bin/checkperlmodules

echo "CPANEL=stable" >> /etc/cpupdate.conf

/scripts/upcp --force


# If you would like to continue with the cPanel 11 updates (recommended), you will need to execute the following commands from the command line:

/usr/local/cpanel/bin/checkperlmodules

/scripts/upcp –force


There is also recently released a new installer (for fresh installs only) that solves many of the cPanel 11 installation problems that have been recently reported.

You can download the installer at: http://layer2.cpanel.net

For those customers who still wish to deploy new 10.x installs, you can easily force the installer to install stable by running:

echo "CPANEL=stable" >> /etc/cpupdate.conf

Before you run the cpanel-universal-install.sea (latest) installer.