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.service
systemctl disable NetworkManager.service
systemctl enable network.service
systemctl start network.service
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.6" > /root/cpanel_profile/cpanel.config
Note: MariaDB 10.6 is compatible with AlmaLinux 8/9-based systems only; for Ubuntu-based systems, it may not function correctly.
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
Subsequently, follow the instructions received in your email after making the payment to activate the license.