How to create a WordPress website with oracle cloud free tier in 2023

In this blog, we are going to show you how to create a WordPress website with oracle cloud free tier.

Oracle Cloud Free Tier has an easy-to-use interface which makes it the best platform to host your WordPress website. We’ll cowl the whole thing from setting up your virtual machine to putting in WordPress and configuring your website. 

So, whether or not you are a small enterprise proprietor or a blogger searching to create a website, comply with alongside with our step-by-step information and get your internet site up and going for walks in no time

Why create a WordPress website with Oracle Cloud Free Tier?

  • Free: With Oracle Cloud Free Tier, you can host your WordPress internet site for free for up to two virtual machines with 1 GB of reminiscence each, making it a budget-friendly choice for persons or small businesses.
  • Scalability: As your internet site grows and requires greater resources, you can effortlessly improve to a higher-tier graph with Oracle Cloud to accommodate your needs.
  • Robust features: Oracle Cloud Free Tier affords a vast variety of elements and offerings that you can use to beautify your WordPress websites, such as storage, networking, and safety features.
  • Flexibility: With Oracle Cloud Free Tier, you have full management over your digital computing device and can customize it to your particular needs, permitting you to run any purposes or services you require alongside your WordPress website.

1. Setting Up Oracle Cloud Free Tier

First, you need to create a free tier account on oracle cloud, it is free but you will need to provide a credit card for verification. Click the button below to visit the oracle cloud website and create your free tier account now!!

2. Setting up your virtual machine

on the dashboard scroll down until you find Launch Resources, under Launch Resources select Create a VM instance.

create a WordPress website with oracle cloud free tier

Edit or fill in the following:

  • Name: Put in any name that will make it easy for you to recognize the instance.
  • Image and shape: Edit and select CentOS as your system and change the OS version to 7.
  • Networking: select “Create new virtual Cloud network”
  • Add SSH keys: click on “Save private key”

When done click on Create, then wait for a few minutes until the instance starts running.

3. Open HTTP and HTTPS ports on your VPS

  1. select the visual cloud network under network details.
  2. click the “subnet-2023″ under name on create subnet.
  3. On security list click the security under name
  4. and click on add ingress rule
create a WordPress website with oracle cloud free tier
create a WordPress website with oracle cloud free tier
create a WordPress website with oracle cloud free tier

1. First ingress rule put the following

  • Source CIDR: 0.0.0.0/0
  • Destination port range: 80

2. select add another ingress rule

  • Source CIDR: 0.0.0.0/0
  • Destination port range: 443

then select add ingress rule

4. login to your VM instance

Copy your IP address.

create a WordPress website with oracle cloud free tier

Now download Putty if you are using a PC or Juice SSH if you are using your phone.

ON PC “putty”

Install putty on the search for putty gen on your Windows search bar, open putty gen.

  • select load, and browse to where you have saved your private key.
  • click putty private key files and change it by selecting all files ” to make your file visible”
  • select your file and click on generate.
  • move your mouse over the blank area to generate.
  • select save private key, browse to where you want to save it, give it a name, and save it.
V2ray

Now search for putty and open it.

create a WordPress website with oracle cloud free tier
  1. on Host Name (or IP address): write ubuntu@” put your IP address at the end” as shown in the image above.
  2. select the + sign on SSH
  3. select Auth
create a WordPress website with oracle cloud free tier
  • Select browse and go to where you have saved your new private key” the one created on putty gen” and select it.
  • select session on the top left corner of Putty and under saved session write any name and save “so that you won’t have to do the process again next time”.
  • click open

5. Install Bitnami WordPress Stack on your VM

first, copy and paste the following command to get root access ” click enter after pasting commands”

sudo -i

Add port 80 for HTTP and port 443 for HTTPS on your firewall using the next commands

sudo firewall-cmd --permanent --zone=public --add-port=80/tcp
sudo firewall-cmd --permanent --zone=public --add-port=443/tcp

Reboot firewall to apply changes

sudo firewall-cmd --reload

update the list of packages of CentOS 7

sudo yum update

If you are asked any questions click “y” and “enter” to proceed

Bitnami WordPress stack image requires dependency libraries, install it with the following command.

sudo yum install ncurses-compat-libs

Install bitnami wordpress with the following command

wget https://bitnami.com/redirect/to/1448613/bitnami-wordpress-5.7.1-0-linux-x64-installer.run

execute permission on the installer package using this command.

sudo chmod 755 bitnami-wordpress-5.7.1-0-linux-x64-installer.run

execute the installer

./bitnami-wordpress-5.7.1-0-linux-x64-installer.run

do the following:

  1. on the first question: Type 1 to select English as the language “enter”
  2. installations type “Y” to accept both Varnish and PHP My Admin “enter”
  3. enter your name, email address, username, and password. make sure to put detail that you won’t forget since they are important. “enter”
  • on the next question type n “enter”
  • y “enter”
  • y “enter”

Remove Bitnami Welcome page and Banner using the following commands

sudo /opt/wordpress-5.7.1-0/apps/wordpress/bnconfig --appurl /
sudo /opt/wordpress-5.7.1-0/apps/wordpress/bnconfig --disable_banner 1

reboot the Apache server to apply changes happen.

sudo /opt/wordpress-5.7.1-0/ctlscript.sh restart apache

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

6. Point the IP address to your domain name

Go to your domain provider select DNS records and add the following custom resource records. copy your VM IP address first

First record:

  • Host Name: put the “@”
  • Type: A
  • TTL: 3600
  • Data: <the static IP address you reserved>

second record:

  • Host Name: www
  • Type: A
  • TTL: 3600
  • Data: <the static IP address you reserved>
create a WordPress website with oracle cloud free tier

This might take up to an hour to point, if you want to check your status go to whatsmydns.com paste your domain name there and search if the IP address is the same as the one you just assigned then you are good to proceed

 

7. Generate a Free SSL certificate

login to putty again and type the following command

sudo /opt/wordpress-5.7.1-0/bncert-tool

fill in the next questions like this

  1. put your domain and click enter
  2. type y and enter 
  3. y and enter 
  4. n and enter

follow the screenshot bellow.

create a WordPress website with oracle cloud free tier

Now your website should be ready for use.

Leave a Reply