How to Manually Reinstall cPanel Perl RPMs

This article demonstrates how to manually reinstall cPanel Perl RPMs. This is a valuable resource if the /scripts/check_cpanel_pkgs isn't working.

This guide is intended for root-level users of cPanel VPS and cPanel Dedicated Servers.

How to Manually Reinstall cPanel Perl RPMs

The first thing you should try to do is run the following command, which should reinstall the cPanel Perl RPMs:

/scripts/fix-cpanel-perl

If that command does NOT run successfully, you will want to follow these manual instructions:

  1. Access the server's command line as the 'root' user via SSH.
  2. Determine the installed OS.
    [root@server ~]cPs# cat /etc/redhat-release
    CentOS Linux release 7.9.2009 (Core)
  3. Use the rpm command to get the existing cpanel-perl version.
    [root@server ~]cPs# rpm -qa | grep cpanel-perl | tail -1
    cpanel-perl-536-statistics-descriptive-3.0800-1.cp108~el7.noarch
  4. Construct the URL from which to download the RPMs.
    http://httpupdate.cpanel.net/RPM/11.$CPVERSION/$OS/$OSVERSION/x86_64/
    • The value of $CPVERSION is the number after the "cp" in the cpanel-perl package version found above.
      cpanel-perl-536-statistics-descriptive-3.0800-1.cp108~el7.noarch
    • The value of $OS is "centos," "cloudlinx," or "rhel" based on the contents of /etc/redhat-release.
    • The value of $OSVERSION is the major version number of the OS.
    From the output of the above examples, the URL is:
    http://httpupdate.cpanel.net/RPM/11.108/centos/7/x86_64/
  5. Run the following command to download and install the cpanel-perl packages.
    rpm -qa cpanel-perl-VERSION*| grep cpCPVERSION | while read x; do rpm -ivh --nodeps --force http://httpupdate.cpanel.net/RPM/11.108/centos/7/x86_64/$x.rpm ; done
    Please note that http://httpupdate.cpanel.net/RPM/11.108/centos/7/x86_64/ in the command should be replaced with the URL constructed above. VERSION should also be replaced with the cpanel-perl version number, and CPVERSION should be replaced with the cPanel version number.

Conclusion

You now know how to manually reinstall cPanel Perl RPMs.

  • perl, rpm, cpanel, cpanel guides
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

How to Find the IP of cPanel/WHM Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors. Find...

Uninstall WHMXtra on cPanel Server

This article provides a quick and direct guide for uninstalling the WHMXtra plugin from a...

How to Customize cPanel Installation

This article provides a guide for customizing a cPanel server installation, using the...