How to install Perl modules using cPanel

This article describes how to use cPanel to install Perl modules on your web site. The cPanel Perl Modules feature installs modules directly from the CPAN (Comprehensive Perl Archive Network) repository.

Installing a Perl module

To install a Perl module, follow these steps:

  1. Log in to cPanel.
    If you do not know how to log in to your cPanel account, please see this article.
  2. Open the Perl Modules tool:
    • If you are using the Jupiter theme, on the Tools page, in the Software section, click Perl Modules:

      cPanel - Software - Perl Modules icon

    • If you are using the Paper Lantern theme, in the SOFTWARE section of the cPanel home page, click Perl Modules:

      cPanel - Software - Perl Modules icon

  3. On the Perl Modules page, under Module Install Path, the listed path is incorrect. Because A2 Hosting servers run Perl 5, the correct path is /home/username/perl5.
  4. Install the desired Perl module in one of the following ways:

    • Search for a Perl module. Type the name in the Find a “Perl Module” text box and then click Go. For example, to search for packages related to XML, type xml. Scroll down the list until you find the desired module and then click the Install link.
    • Click the Show Available Modules button. Scroll down the list until you find the desired module and then click the Install link.
    • If you already know the name of the module you want to install, type the module name under Install a Perl Module and then click Install Now.
  5. When installation is complete, click Go Back.
  6. The installed module is now listed under Installed Perl Module(s):

    • To update the module, click Update.
    • To reinstall the module, click Reinstall.
    • To uninstall the module, click Uninstall.
    • To view the documentation for the module, click Show Docs.
    • To view a list of modules installed systemwide, click Show System Installed Modules.

More Information

For more information about Perl modules, please visit http://www.cpan.org.

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.