Correcting Perl Scalar::List::Util Errors on CentOS 5

We started getting some reports from users on CentOS 5 trying to run EasyApache and being unable to due to the following error: Undefined subroutine &Scalar::Util::readonly called at /usr/lib/perl5/site_perl/5.8.8/IO/Uncompress/Base.pm line 1104. We found that this is due to an outdated Scalar::Util module that was unable to be loaded properly by system Perl.  To fix this, you…

Read more

Errors on /scripts/upcp: Undefined subroutine…

When running a cPanel update, you may get the following error: /scripts/upcp /scripts/upcp syntax OK Running Futex Check/Fix……Done Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273. To fix this, run the following command: wget -O /root/updatenow.static http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static && perl /root/updatenow.static –manual Then you can proceed running a cPanel update: /scripts/upcp –force…

Read more

That Huge .cpan Folder in /Home

A common question we get from cPanel administrators is whether it’s Ok to remove /home/.cpan since, on many servers, it tends to grow to a size exceeding 1G. The short answer is yes – installation files. If you find that yours is occupying too much disk space, delete it, and run the following commands: perl -MCPAN…

Read more

Installing Perl Modules

CPanel has a internal script for using CPAN to install Perl modules. Learn it and love it: /scripts/perlinstaller Most common Perl modules can be installed from WHM ~> Install a Perl Module, or from command line. If you don't know the name of the Perl module you're installing, you may want to use the WHM…

Read more

Log in