BLOGGINGDOMAIN & HOSTINGHow To Set Up WordPress on Amazon EC2

How To Set Up WordPress on Amazon EC2

This article is about WordPress and AWS EC2 services. Setting up a WordPress site on Amazon EC2 is easy. In fact, you can set up your WordPress blog in minutes using this method! You can even get it for free if you have an AWS account and a credit card. We’ll learn how to set this up and make sure it works!

What is AWS and how to access AWS?

Amazon Web Services (AWS) is a collection of online services that can be used to build, run, and manage applications. Amazon’s computing infrastructure as a service includes virtual machines (VMs), storage services, networking, and monitoring tools. You can use them to set up your own website or blog easily using the Bitvise SSH Client.

Steps to Deploy a WordPress site on Amazon EC2:

Follow the following steps to set up a new WordPress site on your EC2 instance. 

Create an EC2 instance on AWS:

This dashboard will appear when you access the AWS console.

Go to the top menu and select Services.

If you click on the Services link, you will see the following screen.

EC2 Setup for New Instance:

You will see the EC2 option on your screen. Click it to begin.

You can create an EC2 instance with Centos 8 as the operating system from this page. The next step is to click the Launch Now option.

Choose AMI:

Select an Amazon Machine Image (AMI). Here you must select the operating system image for this instance.

On the screen above, click on the AWS Marketplace option.

You need to search for Centos here. If you wish to install another operating system, make sure it is supported by CyberPanel first.

We choose CentOS 8 Minimal (CentOS 8.2.2004).

To set up the instance, click on the Select button.

After selecting the operating system, you will see a Pricing Page. A description of what you’ll be charged based on your choice of instance size.

Choose Instance Type:

In this step, you must choose the instance size. Click on the next step. I prefer a free trial for a general policy.

Configure Instance:

Default settings are fine; if you need to modify anything, do so according to your needs. If you don’t want to change anything, leave this as default and proceed to the next step.

Add Storage:

Depending on your needs, you can add or change storage. When changes are made, the process is moved to the next.

Add Tags:

In this step, you can add any tags you want. Name, title, etc.

Add the information like this:

Configure Security Group:

This is the most important part of this process. Some CyberPanel features may not work if you don’t add all CyberPanel ports before installing them.

The default configuration only has one port, which looks like this:

Add all the ports as seen in the picture below

Add IP as,::/0

There are some ports that need to be opened for CyberPanel to work properly (in the IP Address section, you may want to replace with your IP in order to better protect your server from attacks):

IDNameProtocolIP AddressPort


In the final step of the EC2 setup, Make sure all the information you added previously is accurate.

Access Key Setup:

A key pair is required to install CyberPanel on the server. otherwise, You won’t be able to enter SSH. It is also possible to upload an existing key, but we will create and download a new one for you.

You can download this Key Pair to your local computer so that we can access it later.

Use this key and Launch this instance.

The Amazon EC2 will set up your instance in a few seconds and it will be ready to use.

After completion of this process, you can check your instances. All the information about your instances can be found under Services-> EC2 -> Instances.

Access server using Bitvise:

Once all is done for the EC2 setup. It’s time to access the server and install CyberPanel.Our server will be accessed using Bitvise in this article.

You will need to enter your IP address in the Host field, and your username will be centos (the default username is centos). The port number is 22. Set the initial methods to a public key and the client key to auto.

Click on the Client Key Manager to grant access to your key. On the next screen, click the import option.

Select your key file and I will appear on the Client Key Manager.

Once you have logged in, you will be able to access the server.

Install CyberPanel:

Once the terminal was launched.

Follow this guide to install CyberPanel.

Installing CyberPanel

Set up WordPress on CyberPanel:

The main dashboard of CyberPanel is straightforward. Because the panel is prominent, you can easily access the pre-installed features. There is a menu bar on the left side of your screen. Open the following window by clicking on Websites -> Create Website

Provide the following information:

  1. Set Select Package to Default.
  2. Set Select Owner to admin. You can later add other users who should also be able to manage your site.
  3. Set the Domain Name to the domain where you want to install WordPress.
  4. Set Email to your website’s email address. You can make one for official use with one click from the CyberPanel email system.
  5. Set Select PHP to the latest version. You can choose between PHP 5.6 and PHP 7.3 with CyberPanel.
  6. Additionally, you can access additional website features with just a click. SSL (Secure Socket Layer), DKIM Support, and Open_basedir Protection are your choices.
  7. Click Create Website.

The website 1 is now successfully created. The next step is to install WordPress on CyberPanel. You will find your site listed under Websites -> List Websites. You will find the manage option on the right side of your screen. To edit your website, click it.

It will take you to the following screen. You will find WordPress + LSCache under pre-installed applications.

Install WordPress and LSCache by clicking WP + LSCache.Your WordPress site will load faster with the LSCache plugin. Because it is installed at the server level, it differs from other cache plugins.

  1. Your WordPress site’s title should be set as the Blog Title.
  2. The Login User should be set to the username of the site administrator.
  3. For blog authentication, set Email to an email address.
  4. Make sure your blog’s Login Password is a strong one.
  5. For blog authentication, set Email to an email address.
  6. Press the Install Now button.

WordPress is now successfully installed. To log into your WordPress website’s main dashboard, navigate to http://domain-name/wp-login.php/ and enter your username and password:


To recap, you can use the Amazon Web Services (AWS) EC2 service to run a WordPress web server. If you already have some experience with Linux and AWS, this tutorial will get you up and running in no time!

Saroj Meher
Saroj Meher
Howdy! Friends, I am Saroj Meher. I am an Artist. I do Painting on mediums like Acrylic, Watercolour, Oil etc. I have over 7 years of experience in WordPress. I am currently running 30+ website. I am specialized in WordPress and WooCommerce, WordPress Theme Customization and Theme Development. I can fix any kind of WordPress error/issue like PHP, CSS, Js issues and other Theme and Plugin related issues. Client's Satisfaction is my first priority.

Subscribe For More!

Subscribe to get the Latest Updates directly in you Email box.

Explore More


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

I am a Lecturer (English & Sociology), a professional Artist, and a blogger. I do painting, sketches since my childhood. I am in the teaching for 10 years. In this teaching line, I have experience in teaching English at High School and College levels. I have also experienced teaching computer theory during the school teaching period. This is my personal web corner over the internet.

Quick Guides

7 Simple Steps To Start Your Blogging Journey