install cpanel upcloud code example

Example: Install cpanel on upcloud

yum update -y

hostname server.example.com

nano /etc/sysconfig/network-scripts/ifcfg-eth0

#_for_upcloud
      DEVICE=eth0
      BOOTPROTO=static
      ONBOOT=yes
      IPADDR=185.20.139.167
      NETMASK=255.255.252.0
      GATEWAY=185.20.136.1
      
ip link set eth0 down && ip link set eth0 up

systemctl stop NetworkManager
systemctl disable NetworkManager

yum remove NetworkManager -y

systemctl stop firewalld
systemctl disable firewalld

yum remove firewalld -y

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest