Question
How do you reinstall the cPanel Perl RPMs if /scripts/check_cpanel_pkgs isn't working?
Answer
If the cPanel internal Perl isn't working and /scripts/check_cpanel_pkgs is unable to run, you may be able to reinstall the RPMs via other means.
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:
- Log in to the server via SSH or WHM's Terminal as the
rootuser Determine the installed OS:
# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)Use the
rpmcommand to get the existing cpanel-perl version:# rpm -qa | grep cpanel-perl | tail -1
cpanel-perl-536-statistics-descriptive-3.0800-1.cp108~el7.noarchConstruct the URL from which to download the RPMs.
CONFIG_TEXT: http://httpupdate.cpanel.net/RPM/11.$CPVERSION/$OS/$OSVERSION/x86_64/
Note: 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.cp_108_~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/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
Note: 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.
Comments
0 comments
Article is closed for comments.