Ketika anda melakukan instalasi cpanel, biasanya tidak menemui kegagalan atau error. Namun saat tertentu anda akan mengalami error saat melakukan instalasi cpanel. misal anda menemui error saat Instalasi cPanel seperti berikut ini.
[2023-06-27 21:42:38 +0200] [37821] (FATAL): The background process “EA4 Install” failed with a fatal error: The subprocess reported error number 127 when it ended.
2023-06-27 21:42:38 44 [7955] ( INFO): cPanel is here to help! Our Technical Support team is just a click away at https://support.cpanel.net/ or you can contact Customer Service via email cs@cpanel.net
2023-06-27 21:42:38 128 [7955] (FATAL): The system failed to run the /usr/local/cpanel/scripts/cpanel_initial_install script.
The cPanel installer will fail if it cannot create the is_ea4
touch file or create or update the EA4.repo
file. When this occurs, the files must be created manually, and the repo file must be manually updated.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Create the
/etc/cpanel/ea4/is_ea4
touch file.touch /etc/cpanel/ea4/is_ea4
- Open
/etc/yum.repos.d/EA4.repo
in your preferred text editor. - Ensure that the file contains the following.
[EA4-c$releasever] name=EA4 ( EasyApache 4 - c$releasever ) mirrorlist=http://httpupdate.cpanel.net/ea4-c$releasever-$basearch-mirrorlist gpgcheck=1 gpgkey=https://securedownloads.cpanel.net/cPanelPublicPkgKey.asc enabled=1 cost=50
- Run the following command to restart the
cpanel_initial_install
script.export CPANEL_BASE_INSTALL=1;/usr/local/cpanel/scripts/cpanel_initial_install
- Once the script finishes running, run the following command.
unset CPANEL_BASE_INSTALL
- Verify that all of cPanel's core packages have been installed.
/usr/local/cpanel/scripts/check_cpanel_pkgs --fix
- Run the
upcp
script to verify that there are no further issues with the installation./usr/local/cpanel/scripts/upcp --sync