Guide to Perl in cPanel - Perl Environments

Introduction

cPanel & WHM servers include multiple Perl environments. Your Perl modules can use these Perl environments, but they may require certain modifications in order to function correctly.

Perl environments

cPanel & WHM Version 56 and Later 

 cPanel & WHM version 56 and later includes the following Perl environments:

Perl environment

Perl version

Location

Applications that use this Perl environment

Additional information

cPanel-included Perl installation

Perl 5.22

  • This environment self-embeds and compiles in the cPanel binary.
  • /usr/local/cpanel/3rdparty/bin/perl

Note:

This location is a symlink.

  • Install custom modules for this Perl environment into the/opt/cpanel/perl5/522/site_libdirectory.

Note:

@INC walks this directory after it walks all other directories for modules.

  • The cPanel & WHM software.
  • cPanel system maintenance scripts (in the/usr/local/cpanel/scriptsdirectory).
  • CGI scripts.
  • This environment allows you to manage the system's Perl binary independently from cPanel & WHM. Use it when you write Perl scripts for a cPanel & WHM server.
 

The server's Perl binary

  • Perl 5.8.8 on CentOS, CloudLinux™, and Red Hat® Enterprise Linux (RHEL) 5.
  • Perl 5.10 on CentOS, CloudLinux, and RHEL 6, and Amazon Linux.
  • Perl 5.16 on CentOS, CloudLinux, and RHEL 7.

/usr/bin/perl

  • Operating system maintenance scripts.
  • Some custom modules.
  • Manage modules for this Perl environment with the cpan command or with WHM's Module Installers interface (Home >> Software >> Module Installers).
 

 
cPanel & WHM version 11.46 through 54

Perl environment

Perl version

Location

Applications that use this Perl environment

Additional information

The server's Perl binary

  • Perl 5.8.8 on CentOS, CloudLinux™, and Red Hat® Enterprise Linux (RHEL) 5.
  • Perl 5.10 on CentOS, CloudLinux, and RHEL 6, and Amazon Linux.
  • Perl 5.16 onCentOS, CloudLinux, and RHEL 7.

/usr/bin/perl

  • Operating system maintenance scripts
  • Some custom modules
  • Manage modules for this Perl environment with the cpan command or with WHM's Module Installers interface (Home >> Software >> Module Installers).
 

cPanel-included Perl installation

Perl 5.14.4

  • This environment self-embeds and compiles in the cPanel binary.
  • /usr/local/cpanel/3rdparty/bin/perl

Note:

This location is a symlink.

  • Install custom modules for this Perl environment into the/opt/cpanel/perl5/514/site_libdirectory.

Note:

@INC walks this directory after it walks all other directories for modules.

  • The cPanel & WHM software.
  • cPanel system maintenance scripts (in the/usr/local/cpanel/scriptsdirectory).
  • CGI scripts
  • This environment allows you to manage the system's Perl binary independently from cPanel & WHM. Use it when you write Perl scripts for a cPanel & WHM server.

Note:

In cPanel & WHM version 11.46 and later, cPanel's Perl binary and the cPanel-included Perl installation use the same modules and have the same Perl version


cPanel & WHM version 11.36 through 11.44 

Perl environment

Perl version

Location

Applications that use this Perl environment

Additional information

The server's Perl binary

  • Perl 5.8.8 on CentOS, CloudLinux™, and Red Hat® Enterprise Linux (RHEL) 5.
  • Perl 5.10 on CentOS, CloudLinux, and RHEL 6.

/usr/bin/perl

  • Operating system maintenance scripts
  • Some custom modules
  • Manage modules for this Perl environment with the cpan command or with WHM's Module Installers interface (Home >> Software >> Module Installers).
 

cPanel's Perl binary

Perl 5.6.2

  • This environment self-embeds and compiles in the cPanel binary.
  • Place modules for this Perl environment into the/usr/local/cpanel/perl directory.
  • The cPanel & WHM software.
  • Some custom modules
 

 

cPanel-included Perl installation

Perl 5.14.3

  • /usr/local/cpanel/3rdparty/bin/perl

Note:

This location is a symlink.

  • Install custom modules for this Perl environment into the/usr/local/cpanel/3rdparty/perl/514/site-lib directory.
  • cPanel system maintenance scripts (in the/usr/local/cpanel/scriptsdirectory).
  • CGI scripts
  • This environment allows you to manage your system's Perl binary independently from cPanel & WHM. Use it when you write Perl scripts for your cPanel & WHM server.
   

 cPanel & WHM version 11.34 and earlier 

cPanel & WHM version 11.34 and earlier includes the following Perl environments:

Perl environment

Perl version

Location

Applications that use this Perl environment

Additional information

The server's Perl binary

  • Perl 5.8.8 on CentOS, CloudLinux™, and Red Hat® Enterprise Linux (RHEL) 5.
  • Perl 5.10 on CentOS, CloudLinux, and RHEL 6.

/usr/bin/perl

  • Operating system maintenance scripts
  • cPanel system maintenance scripts (in the/usr/local/cpanel/scriptsdirectory).
  • CGI scripts
  • Manage modules for this Perl environment with the cpan command or with WHM's Module Installers interface (Home >> Software >> Module Installers).
  • cPanel & WHM excludes this environment in YUM updates.
 

cPanel's Perl binary

Perl 5.6.2

  • This environment self-embeds and compiles in the cPanel binary.
  • Place modules for this Perl environment into the/usr/local/cpanel/perldirectory.
  • The cPanel & WHM software.
  • Custom modules
 

 

 

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....