Thursday, February 18, 2010

Perl version Upgradation at Cpanel

You can ensure that each installed module gets carried over to
the updated Perl build with the use of the "autobundle" CPAN feature.

You can create a bundle of the currently installed modules
by executing the following while logged in via SSH as root:

perl -MCPAN -e 'autobundle'

Once completed, you should see the following output before getting
returned to the shell:

'Wrote bundle file /home/.cpan/Bundle/Snapshot_2007_08_16_00.pm'

Once you've made note of this file name, you can proceed with the update.

On linux based systems, you should be able to update Perl using
the installer provided at layer1.cpanel.net:

cd /root
wget http://layer1.cpanel.net/perl588installer.tar.gz
tar -zxf perl588installer.tar.gz
cd perl588installer
./install -optimize-memory

On FreeBSD based systems, you will need to install Perl from ports.

This will take a few minutes, so take a coffee break and check
the status when you return. Once the update has completed, you
can install all previously installed modules from the CPAN bundle
by executing the following (with the bundle name adjusted to the
name of the bundle generated earlier):

perl -MCPAN -e 'install Bundle::Snapshot_2007_08_16_00'

This should install each of the modules present in the bundle,
assuming there are no issues during the installation (dependencies,
network, etc).

Once this has completed, execute the following to ensure that all modules
required by cPanel are installed, and restart cPanel:

/usr/local/cpanel/bin/checkperlmodules
/usr/local/cpanel/startup

No comments:

Post a Comment

 Linux Interview  Linux booting process EXT4 XFS file system runlevel scan disk hba driver systool -c fc_host lspci -nn | grep -i hba single...