Symptoms
When attempting to install cPanel, you receive an error similar to the following.
Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /home/cPanelInstall/selfgz2438/install line 12.
Description
The error occurs because Perl is not installed on the server. Perl must exist on your server before the cPanel & WHM installation script can run successfully.
Workaround
- Access the server's command line as the 'root' user via SSH.
- Install Perl.
- AlmaLinux, CloudLinux, Rocky Linux
dnf -y install perl
- Ubuntu
apt -y install perl perl-base
- AlmaLinux, CloudLinux, Rocky Linux
Additional resources
Installation Guide - System Requirements for AlmaLinux OS: Perl installation
Installation Guide - System Requirements for CloudLinux: Perl installation
Installation Guide - System Requirements for Rocky Linux: Perl installation
Installation Guide - System Requirements for Ubuntu: Perl installation