Important Note:
The procedures outlined in this guide necessitate root privileges. Ensure that you execute the steps below either as the root user or with the sudo prefix.
Prior to initiating the process, verify that you have obtained a valid cPanel license. Subsequently, log into your server as the root user via SSH using its IP address.
Disable NetworkManager by executing the following commands:
systemctl stop NetworkManager; systemctl disable NetworkManager
systemctl enable network; systemctl start network
Set a custom hostname and commence the installation process. To establish your own hostname, utilize the following command, ensuring to substitute "server1.domainname.tld" with your preferred hostname:
hostnamectl set-hostname server1.domainname.tld
Specify the MySQL/MariaDB version before installation if needed:
mkdir -p ~/cpanel_profile && echo "mysql-version=10.11" > /root/cpanel_profile/cpanel.config
Note: MariaDB 10.11 works with AlmaLinux 8/9 and Ubuntu-based systems.
Execute the following command to download and install cPanel. Be aware that the installation process might take a considerable amount of time:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Re-enable NetworkManager. For example, if you have access to SSH/Terminal/Console, the following commands will be used to re-enable NetworkManager.
systemctl disable network; systemctl enable NetworkManager
systemctl stop network; systemctl start NetworkManager
Subsequently, follow the instructions received in your email after making the payment to activate the license.
