After installing cPanel on AlmaLinux/CloudLinux/Rocky 8 servers, your server becomes inaccessible when rebooted.
The NetworkManager service is disabled on AlmaLinux/CloudLinux/Rocky 8 servers upon installation of the cPanel software. The Network service will be installed and configured in its place. Customizations to the network-related configurations can conflict with this server change and prevent the Network service from starting during server boot. If such a conflict occurs, rebooting the server will result in the server being inaccessible.
You will need to work with your network or system administrator to configure the server to be compatible with the Network service. By default, this will work with stock images of these operating systems and will only occur if customizations have been made to them. In some cases, you may need to contact your hosting provider for further assistance.
Since the cause varies depending on the customizations causing this, the only workaround that we can confirm is to re-enable the NetworkManager before rebooting the server after a cPanel installation.
1. Install cPanel.
2. Re-enable NetworkManager. For example, if you have access to SSH/Terminal/Console, the following commands will be used to re-enable NetworkManager.
/usr/bin/systemctl disable network
/usr/bin/systemctl enable NetworkManager
/usr/bin/systemctl stop network; /usr/bin/systemctl start NetworkManager
Please see the article below for further details about cPanel's networking requirements.