Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.
Install cPanel & WHM on AWS EC2 Instance with CentOS 7 and set up Email and Security using Web Host Manager (WHM). This latest version simplifies the WHM setup in just two clicks compared to the installation of old cPanel version. cPanel is a server management software for website owners which comes with a 15-day […]
Install cPanel & WHM on AWS EC2 Instance with CentOS 7 and set up Email and Security using Web Host Manager (WHM). This latest version simplifies the WHM setup in just two clicks compared to the installation of old cPanel version.
cPanel is a server management software for website owners which comes with a 15-day trial.
Then set the hostname with your domain name. Replace yourdomainname.com with your domain name.
Download latest cPanel and install it by running the following command.
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
It will take around 30 – 40 min to complete the install. Don’t close the terminal until the setup is completed.
Once the setup is completed, you can set the root password by executing the following command.
Save your password safely, you will need that to login to your WHM.
Set up Hostname in AWS
AWS Instance won’t preserve the hostname (cpanel.yourdomainname.com) you set and changes it to default hostname automatically, so this may result in a locked cPanel & WHM license. To preserve the hostname follow the below simple steps .
cd /etc/dhcp/dhclient-exit-hooks.d/ sudo nano set-hostname.sh
Paste the following contents and hit Ctrl+X followed by Y to save the file. Remember to replace yourdomainname.com with your domain name
That’s all now your cPanel is installed and ready to finish the WHM setup
Open your browser and navigate to https://cpanel.yourdomainname.com:2087 . At this point, some browsers show a warning message about HTTPS and don’t allow you to visit the WHM page. In this case, you can use your IP Address instead of the domain name (https://PUBLIC_IP_ADDRESS:2087). It will take some time for the SSL certificate to get issued by cPanel.
Enter username as root
Enter the password you created by running the command passwd
Now you will be logged into your WHM.
Click Agree to All.
Provide your email address.
Now you will be taken to the WHM home page.
Setup Email in WHM
In AWS port 25, which cPanel & WHM utilizes for email is not open. So you need to create an account with Mailgun or Sendgrid and integrate with WHM for emails or Configure Amazon SES.
Allow SMTP on Port 2525
Go to Service Configuration >> Service Manager
Tick both boxes next to Exim Mail Server (on another port)
Change Allow exim to listen on a port other than 25 to 2525
As the standard email port is blocked in Google Cloud, you need to configure a third party email service provider to send emails. Here we can use Mailgun to configure emails in cPanel.
Make sure you have these DNS records.
A record pointing to mail.domain.com
MX record with 0 priority pointing to mail.domain.com
Go to Service Configuration >> Exim Configuration Manager.
Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.