Development Guides Home >> Guide to Perl

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 94 and later

Perl environments Perl version Location Applications that use this Perl environment Additional information
The server's Perl binary
  • Perl 5.10 on CentOS, CloudLinux, and RHEL 6, and Amazon Linux.
  • Perl 5.16 on CentOS, CloudLinux, and RHEL 7
  • Perl 5.26.3 on CentOS, CloudLinux, and RHEL 8.
.
/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 installation Perl 5.32
  • This environment self-embeds and compiles in the cPanel binary.
  • /usr/local/cpanel/3rdparty/bin/perl = This location is a symlink.
  • Install custom modules for this Perl environment into the /opt/cpanel/perl5/532/site_lib directory. @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 Modules and Scripts documentation.

cPanel & WHM version 86 through 92

Perl environments 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 (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 installation Perl 5.30
  • This environment self-embeds and compiles in the cPanel binary.
  • /usr/local/cpanel/3rdparty/bin/perl = This location is a symlink.
  • Install custom modules for this Perl environment into the /opt/cpanel/perl5/530/site_lib directory. @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 Modules and Scripts documentation.

cPanel & WHM version 78 through 84

Perl environments 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 (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 installation Perl 5.28
  • This environment self-embeds and compiles in the cPanel binary.
  • /usr/local/cpanel/3rdparty/bin/perl = This location is a symlink.
  • Install custom modules for this Perl environment into the /opt/cpanel/perl5/528/site_lib directory. @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 Modules and Scripts documentation.

cPanel & WHM version 70 through 76

Perl environments 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 (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 installation Perl 5.26
  • This environment self-embeds and compiles in the cPanel binary.
  • /usr/local/cpanel/3rdparty/bin/perl = This location is a symlink.
  • Install custom modules for this Perl environment into the /opt/cpanel/perl5/526/site_lib directory. @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 Modules and Scripts documentation.