Confirm Upgrading Perl to 5.18.1 Without Problems With WHM/Cpanel


Oct 11, 2013
cPanel Access Level
Root Administrator
Hello everyone,

After contacting our dedicated hosting companies to upgrade Perl to the latest version 5.18.1 they said cpanel
does not support latest versions of Perl and any upgrade will lead to problems with cpanel/whm. However we installed the latest version of Perl 5.18.1 from the source and also installed all modules and Modern perl modules and all sites and even cpanel/whm working normal without any single issue.

Here are the steps we did:

Download the latest Perl release, currently 5.18.1 from Perl - Download - and decompress it.

% wget
% tar -vxzf perl-5.18.1.tar.gz
% cd perl-5.18.1

Tell the Configure script where to install everything. I like /usr/local/perl/perl-5.xx.x:

% ./Configure -des -Dprefix=/usr/local/perl/perl-5.18.1

It’s now time to compile the perl source and perform a test when done.

% make
% make test
% make install

This installed Perl-5.18.1 to:

backup current perl 5.8.8
% mv /usr/bin/perl /usr/bin/perl588

% ln /usr/local/perl/perl-5.18.1/bin/perl-5.18.1 /usr/bin/perl

I even restarted the server and still no issues.

I hope cpanel/whm now comes with the latest Perl version as these modern perl versions has many enhancements.

Thank you
Keeping Perl Up To Date
% perl -MCPAN -e upgrade


Staff member
Apr 11, 2011
Hello :)

Per our documentation:

As of cPanel & WHM version 11.36, we distribute a 3rd version of Perl located at /usr/local/cpanel/3rdparty/perl/514/bin/perl. In addition, we have changed the Perl scripts that we distribute with cPanel & WHM to use this version of perl. These scripts include the cPanel system maintenance scripts (in /usr/local/cpanel/scripts) and in CGI scripts in cPanel & WHM. This change allows you to manage your system's Perl binary independently of cPanel & WHM. Ultimately, you can no longer expect all of the same modules to be installed into @INC for the system's Perl binary located at /usr/bin/perl in cPanel & WHM 11.36.

Thank you.