Amazon Web Services(AWS) comes with a free 12-month Elastic Compute Cloud(ec2) so for every newcomer, this plan is perfect but to manage this cloud there are a lot of challenges so we need to use a cloud control panel so that we can manage our server.
So in this article, we are going to discuss how we can set up a WordPress website on AWS for free using cloudpanel. Cloudpanel install on AWS ec2 Instence.
Cloudpanel Install on AWS ec2
In 2018 I used a lot of web hosts for my WordPress hosting but when I discovered cloud servers then there was a problem that I faced that was not easy to use. So for that, I used a web hosting control panel.
What is a CloudPanel?
CloudPanel is a free web hosting control panel to manage our server efficiently without any worry. CloudPanel comes with lightweight and blazing-fast technology like Nginx, PHP-FPM, and MySQL. So you gonna get optimal performance from your Instance.
Create EC2 instance in AWS Free
In order to get a Free cloud server from AWS, we need an active amazon web service account you can easily get with your Debit and credit card. here’s a guide on how to create a free tier account in aws From K21Academy.
After you get your AWS account now we gonna create a 12-month free EC2 instance here is a step-by-step guide.
Setup Cloudflare for domain management
Cloudflare provides us an extra security layer with a free content delivery network(CDN) So that our website gonna be extra safe also CloudPanel have some extra feature for Cloudflare.
Here’s a guide on cloudpanel installation on AWS ec2 with Cloudflare. for that, you can add your domain to Cloudflare for free.
Link Domain to AWS ec2 instance
After setup Cloudflare now we can connect our domain to our server(ec2). here’s a guide on how you can link using Cloudflare DNS.
Security Groups to install cloudpanel
In order to install CloudPanel, we need four ports so that we can install easily without any problem.
When we created our instance we open 3 ports SSH, HTTP, and HTTPS so now we only have to open one more port so that we can access our CloudPanel dashboard. cloudPanel install on AWS ec2.
Login via SSH to the EC2 instance
If you are on Linux and Mac then you can use seystem terminal to ssh into your instance but if you are using Windows machine then you can use SSH cleint like PuTTY.
Or you can use your AWS own ssh client so that you don’t have to use anything. it’s all web-based so you don’t have to do anything aws gonna do everything for you.
Here we gonna use Fedora Linux to ssh into the server.
locate the Key pair that we download when we created our instance. Now we need to use this command only once.
chmod 400 theplaymag.pem
now we are going to use SSH in order to get into our server.
ssh -i "themag.pem" [email protected]
After then you have to type yes in order to enter our server.
Installing CloudPanel on the Ubuntu server
After login into server we need to get into root
sudo su root
after that we need to update our ubuntu system so we get latest software. also some required software to install CloudPanel.
apt update && apt -y upgrade && apt -y install curl wget sudo
After that you have to paste your cloudpanel script to install on your server. For that you can use three methods but you can go with MySQL database engine.
curl -sSL https://installer.cloudpanel.io/ce/v2/install.sh | sudo CLOUD=aws bash
Give some time to install and setup CloudPanel on your server after server completed you gonna get a link to access your CloudPanel.
When you are going to access that link first time you are going to get a registration form so that you can make a CloudPanel account. and login into future account. CloudPanel install on AWS ec2 .
Custom Domain and SSL to access CloudPanel
Now we completed cloudpanel install on AWS ec2 now we are going to secure our server and setup a custom subdomain to access cloudpanel dashboard.
Installing WordPress on aws ec2 using cloudpanel
After clodpanel install on AWS ec2 we setup custom domain and now we are going to install our WordPress so here’s a complete guide on installing WordPress website.
Managing own server is hard I can understand before CloudPanel I used webinoly to host my website but after CloudPanel install on AWS ec2 my website load fast and also it’s easy to maintain.
CloudPanel handle everything automatically so you don’t have to do anything so you can more focus on content writing not on handling on server and doing technical work.
So my suggestion for any new comer use CloudPanel to host your website with any cloudhosting provider. we can host multiple website on same server. With the help of cloudflare we get good security and easy to maintain and it’s so fast.
If you have any suggestion and complain on this post you can contact us.