cPanel and WHM now support for Ubuntu Linux up to 20.04 version as on Nov 2023.
cPanel on Ubuntu 20.04
Here is the pre-installation check and installation guide.
1) Firstly, check your network if DHCP. cPanel on Ubuntu require STATIC only setup for network
ip r | grep default
If DHCP found, configure your network as STATIC.
2) Set your server hostname (must be a FQDN)
nano /etc/hosts
Edit the hosts file to match like your hostname.
127.0.0.1 localhost
172.XX.XX.XX server.yourdomain.com server
echo
server.yourdomain.com
> /etc/hostname
3) Change the operating state
systemctl set-default multi-user.target
4) Set time auto update
apt-get -y install ntp
5) Disable Firewall
iptables-save > ~/firewall.rules
systemctl stop ufw.service
systemctl disable ufw.service
6) Disable AppArmor
service apparmor stop
update-rc.d -f apparmor remove
apt-get remove apparmor apparmor-utils
7) Disable SELINUX, if installed
sestatus
nano /etc/selinux/config
FROM:
SELINUX=enforcing
TO:
SELINUX=disabled
8) Perl is required to install cPanel/WHM
apt update && apt upgrade && apt install perl perl-base
9) It’s time to check your disk-drives. Check if SWAP already enabled, and the most space is allocated on /
free -h
fdisk -l
lsblk
Now, reboot the server
reboot
10) Finally, start install cPanel/WHM
echo "CPANEL=current" > /etc/cpupdate.conf
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Wait for about 10 minutes or more !
11) Login to WHM
https://172.XX.XX.XX:2087
Ignore SSL security warning and proceed to login
User: root
Password: server root password
Agree the terms and activate trial account, you can buy license after 15 days of free trial
12) Configure Nameservers A record
Home > Server Configuration > Basic WebHost Manager Setup
12) Create a cPanel account for the hostname's main domain
Home > Account Functions > Create a New Account
13) Check the hostname's DNS settings and correct nameserver NS records
Home > DNS Functions > DNS Zone Manager
14) Set AutoSSL provider to Sectigo
Home > SSL/TLS > Manage AutoSSL
15) Activate the system's Service SSL Certificates
/usr/local/cpanel/bin/checkallsslcerts
16) Reboot server and configure other options
reboot
Browse each and every left-sidebar menu(s), and configure various options and features
Post a Comment
Post a Comment