.pdf)
WHM Plugins
/usr/bin/perl. The system's Perl is the version distributed by your operating system or compiled by cPanel for your operating system to use. By default, this instance of Perl is a standard environment running Perl 5.8.8 on RHEL/CentOS 3, 4, and 5; and Perl 5.10 on RHEL/CentOS 6. cPanel & WHM adds a few modules to this environment and will exclude this instance in YUM updates.
This particular instance of Perl is used by CGI scripts, system maintenance scripts (in /usr/local/cpanel/scripts), and in CGI scripts in cPanel & WHM. These CGI scripts in cPanel & WHM include WHM plugins that use the #!/usr/bin/cpenv perl shebang.
You can manage modules for this Perl instance with cpan command or using the Software Module Installers feature in WHM.
/usr/local/cpanel/build-tools/buildperl. This binary is a compiled Perl script that implements many of the switches required for Perl modules to be compiled against it. When using buildperl utility, you will need to specify a variety of MakeMaker options:
SITEPREFIX=/usr/local/cpanel/perl PERL_LIB=/usr/local/cpanel/perl PERL_ARCHLIB=/usr/local/cpanel/perl/x86_64-linux SITELIBEXP=/usr/local/cpanel/perl SITEARCHEXP=/usr/local/cpanel/perl/x86_64-linux INSTALLPRIVLIB=/var/cpanel/lib/perl5 INSTALLSITELIB= /var/cpanel/lib/perl5 INSTALLARCHLIB= /var/cpanel/lib/perl5 PERL_SRC=/usr/local/cpanel/perl INSTALLMAN3DIR=/usr/local/cpanel/3rdparty/man
/usr/local/cpanel/build-tools/buildperl MakeFile.PL SITEPREFIX=/usr/local/cpanel/perl PERL_LIB=/usr/local/cpanel/perl PERL_ARCHLIB=/usr/local/cpanel/perl/x86_64-linux INSTALLPRIVLIB= /var/cpanel/lib/perl5 INSTALLSITELIB= /var/cpanel/lib/perl5 SITELIBEXP=/usr/local/cpanel/perl SITEARCHEXP=/usr/local/cpanel/perl/x86_64-linux INSTALLARCHLIB= /var/cpanel/lib/perl5 PERL_SRC=/usr/local/cpanel/perl INSTALLMAN3DIR=/usr/local/cpanel/3rdparty/man make make test make install
make test command if the make command was successful.
make install command if the make test command was successful.
/usr/local/cpanel/build-tools/buildperl -e'use <MODULENAME>; print "$<MODULENAME>::VERSION\n";'If the version of the module you installed is returned by the utility, the installation was successful.
/usr/local/cpanel. If you plan on developing plugins, please check back frequently for more specifications as they become available.
/usr/local/cpanel/3rdparty/perl/514/bin/perl. This will allow your system's Perl binary to be managed independently of cPanel & WHM. Ultimately, you cannot longer expect all of the same modules to be installed into @INC for the system's Perl binary at /usr/bin/perl/ in cPanel & WHM 11.34. This also means that systems provisioned after this change can manage the system's Perl binary via an RPM.
/usr/local/cpanel/scripts/postupcp that validates your applications functionality externally. We also strongly recommend that this hook notify you of any failures so that you may address them yourself or file a support ticket with our technical support staff.
Copyright © cPanel 2000–2011.