Page tree
Skip to end of metadata
Go to start of metadata

 

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

Select a tab to view information about that cPanel & WHM version's available Perl environments:


 cPanel & WHM versions 62 and later include the following Perl environments:

Perl environmentPerl versionLocationApplications that use this Perl environmentAdditional information
The server's Perl binary
  • Perl 5.8.8 on CentOS, CloudLinux™, and Red Hat® Enterprise Linux (RHEL) 5 (cPanel & WHM version 56 only).
  • 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 (WHM >> Home >> Software >> Module Installers).
cPanel-included Perl installationPerl 5.24
  • 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/524/site_lib directory.

    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/scripts directory).
  • 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.
  • For more information about how to modify scripts and modules to use this Perl environment, read our Prepare Perl Scripts for cPanel & WHM's Internal Perl documentation.

 cPanel & WHM version 56 through 60 include the following Perl environments:

Perl environmentPerl versionLocationApplications that use this Perl environmentAdditional information
The server's Perl binary
  • Perl 5.8.8 on CentOS, CloudLinux™, and Red Hat® Enterprise Linux (RHEL) 5 (cPanel & WHM version 56 only).
  • 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 (WHM >> Home >> Software >> Module Installers).
cPanel-included Perl installationPerl 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_lib directory.

    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/scripts directory).
  • 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.
  • For more information about how to modify scripts and modules to use this Perl environment, read our Prepare Perl Scripts for cPanel & WHM's Internal Perl documentation.

 cPanel & WHM versions 11.46 through 54 include the following Perl environments:

Perl environmentPerl versionLocationApplications that use this Perl environmentAdditional 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 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 (WHM >> Home >> Software >> Module Installers).
cPanel-included Perl installationPerl 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_lib directory.

    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/scripts directory).
  • 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.
  • For more information about how to modify scripts and modules to use this Perl environment, read our Prepare Perl Scripts for cPanel & WHM's Internal Perl documentation.

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 includes the following Perl environments:

Perl environmentPerl versionLocationApplications that use this Perl environmentAdditional 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 (WHM >> Home >> Software >> Module Installers).
cPanel's Perl binaryPerl 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 installationPerl 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/scripts directory).
  • 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.
  • For more information about how to modify scripts and modules to use this Perl environment, read our Prepare Perl Scripts for cPanel & WHM's Internal Perl documentation.

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

Perl environmentPerl versionLocationApplications that use this Perl environmentAdditional 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/scripts directory).
  • CGI scripts

  • Manage modules for this Perl environment with the cpan command or with WHM's Module Installers interface (WHM >> Home >> Software >> Module Installers).
  • cPanel & WHM excludes this environment in YUM updates.
cPanel's Perl binaryPerl 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.
  • Custom modules