First, here are the beginning steps:
hostnamectl set-hostname srv.example.com
yum install epel-release -y
yum -y install wget curl nano
yum -y update
reboot
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el9-latest
sh cwp-el9-latest
If successful, you will see this message:
#############################
# CWP Installed #
#############################
Go to CentOS WebPanel Admin GUI at http://SERVER_IP:2030/
http://5.xx.179.xxx:2030
SSL: https://5.xx.179.xxx:2031
---------------------
Username: root
Password: ssh server root password
MySQL root Password: xxxxxxxxxxx
#########################################################
CentOS Web Panel MailServer Installer
#########################################################
SSL Cert name (hostname): srv.example.com
SSL Cert file location /etc/pki/tls/ private|certs
#########################################################
Visit for help: www.centos-webpanel.com
Write down login details and press ENTER for server reboot!
71 files removed
Please reboot the server!
Reboot command: shutdown -r now
next, you will want to a a root password if one is not already configured.
Next, Set up the DNS Nameservers
Set up custom nameservers at the domain registrar and then set up the nameservers in the CWP panel.
Next, Set up the PHP version you wnat to have as the mail PHP version. Since we installed Alma 9, there are better and higher versions available.