How to Install Perl modules on cPanel

Install Perl modules on cPanel from command line

Sometimes system tools and apps require Perl modules to work, and if you are installing those apps on a cPanel server then you have an easy way to install Perl modules. It’s as simple as running this command:

/usr/local/cpanel/3rdparty/perl/514/bin/cpan -i Module::Name

The -i option indicates that you wish yo install the module and you just have to replace “Module::Name” with the real Perl module you need to install.

For example, to install the Digest::MD5 module this should be the output:

/usr/local/cpanel/3rdparty/perl/514/bin/cpan -i Digest::MD5

Testing the installed Perl modules

To confirm that the modules you installed are 100% functional just run this command and replace “Module::Name” with your real perl module names:

/usr/bin/perl -MModule::Name -e ‘print $Module::Name::VERSION . “\n”‘

Installing perl modules from WHM

There is an alternative way to install perl modules on cPanel and that is using WHM interface:

WHM >> Install a Perl Module

Place the name you need to install and click ‘Install Now’

WHM also offers some other interesting functions related to Perl modules, like the hability to view the complete list of of all Perl modules available for installation, that is done using the option Show Available Perl Module(s). To view the Perl modules installed systemwide, click on Show System Installed Modules.

As you see, install perl modules on cpanel is pretty much easy and it will take you just a few minutes of your time.

About the Author: Santiago Borges

Experienced Sr. Linux SysAdmin and Web Technologist, passionate about building tools, automating processes, fixing server issues, troubleshooting, securing and optimizing high traffic websites.

Leave a Reply

Your email address will not be published. Required fields are marked *