Installing WordPress Using AWS

I’m going to show you how to create a free WordPress Blog using Amazon’s AWS. By the end of this, you will learn the basics of web hosting, AWS cloud, and Linux.

  1. First thing you will need to do is register for an AWS Account

AWS Requirements:

  • A valid credit card (they will charge a couple of cents to confirm it’s valid)
  • A valid phone number and email to verify your account

2. After creating your account, you will go through the initial signup process. Make sure to pick the free version (12-month trial)

3. After you finish signing up for an account, you will have to sign in as root user: Sign in here

4. After logging in, click on launch a virtual machine

5. You will be shown a list of virtual machines, pick CentOS7 AMI (but you can also use Amazon Linux as well)

6. Pick the Free Tier if eligible

7. Afterwards, click on next

  • For configure Instance Details, leave as default
  • Then click next
  • For general purpose SSD, put in 30GB of storage
  • Then click next
  • For Add Tags, leave as default
  • Then click next
  • For Configure Security Group, add HTTP and HTTPS
  • Click Launch

8. Before you launch, it will ask you to Pair Key or create a new one

  • Create a new key then name it. Download the Key Pair and keep it in a safe place like on a USB

9. Launch the Instance

10. You should create some billing alerts in case you get charges a year later or if your website is billed later

11. After you’re done all that, you should go to your Instances Tab and you should see that your server is running

12. To connect to your Linux server, you will need to SSH into it using PUTTY

13. Open puttygen.exe, we will now have to convert our .pem file into a .ppk file so PUTTY will understand our authentication key

14. Load an existing private key file

  • When you’re browsing for your .pem file, remember to browse all files
  • Now that you’ve selected your .pem file, save your private key as a .ppk file as PUTTY will be able to read it

15. Open up PUTTY and we will configure SSH

  • Go to SSH and then press + and press Auth
  • Add your private key file for authentication

16. After you found and loaded your .ppk file for authentication go back to your PUTTY menu. Enter your public DNS from Amazon AWS and press open

17. You should see something like this when you connect. Press yes


  1. Find an authorized domain registrar
  • I recommend Dynadot, GoDaddy, or NameCheap
  • All three are ICANN authorized websites and domains cost as little as $1.50
  • You can use a free .tk domain if you want to make this 100% free

2. After registering your domain we will need to forward the website to your AWS server IP in your DNS settings

  • You can either change the A records by creating a custom DNS and add your IP as the target host
  • OR you can do stealth forward, your domain will be forwarded to your IP


This part will take up most of your time. Follow my guide here to do the installation then come back to complete the rest of the tutorials: click here


Since we’re hosting WordPress on a web server. We want to access the internet. To do that, we will have to do the following steps:

We will have to edit our httpd.conf file, I’m using VIM but you can use NANO or GEDIT

  • #vi /etc/httpd/conf/httpd.conf

Then we will have to add the following code to the end of the text:

< VirtualHost
DocumentRoot /var/www/html/wordpress
ErrorLog /var/log/httpd/tecminttest-error-log
CustomLog /var/log/httpd/tecminttest-acces-log common

Save your changes and we will have to restart Apache

  • # systemctl restart httpd

We’re almost there, we will have to access our WordPress site and
complete the install on the web, please refer to my WordPress
installation on CentOS for more details. But the rest of this should
be pretty straightforward.

  • http://ip-address OR YOUR http://domain

If you have any questions, feel free to comment below. Thank you!

Add a Comment

Your email address will not be published. Required fields are marked *