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 - www.perl.org and decompress it.
% wget http://www.cpan.org/src/5.0/perl-5.18.1.tar.gz
% 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:
/usr/local/perl/perl-5.18.1
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
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 - www.perl.org and decompress it.
% wget http://www.cpan.org/src/5.0/perl-5.18.1.tar.gz
% 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:
/usr/local/perl/perl-5.18.1
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