You would be looking for a solution to host WordPress on a lifetime free hosting server. In this video, I’ll explain how to install WordPress on any cloud platform using their free tiers. You do not need advanced knowledge about coding or WordPress to do this. If you are a beginner, don’t worry follow the steps correctly at the beginning.
This is a 100% free wordpress hosting usa plan. You may not charge any fees for this. I use the Docker container to host the Bitnami stack on the Oracle cloud. I recommend you try Oracle cloud, which provides 2 Virtual Server with 1/8 OCPU processor, 1GB memory, and 50GB storage. You will learn a method to increase the Memory of the VM instance.
Setup VM instance & Firewall Rules
You have to sign up for the Oracle Cloud. If you have trouble with the signup process watch 1st part of this video. I will put the link in the description. After the signup, you can follow these steps with me.
In your Oracle dashboard, click the “create a VM instance” button. Name it, use any name you prefer. Click “edit” under configure and placement hardware. To change the OS, click the “change image” button and select Ubuntu 20.04 as your OS. Under network configuration, check whether you select “New virtual cloud network”.
You have to add an SSH key for the instance. Select “paste public key” to add the SSH key. You have to install Putty Key App to generate and connect to the VPS. Check the description for the download link. After installation of the Putty app. Open Putty Key Gen. Click the “generate” button then, move your cursor in this area. Copy the SSH key and paste it. Click create button to deploy the VM instance. It may take few seconds. Save the private key in a safe place, it is necessary to connect the VM instance.
While VPS deploying, setup the firewall rules for the WordPress site to allow HTTP and HTTPS traffic. Under Primary VNIC, open the subnet link in a new tab. Then click on your security list. Now, click “Add Ingress Rules” to add new firewall rules. Add this IP as Source IP, it will allow all IP ranges to connect on your WordPress site. Add 80 as the destination port. Add another ingress rule by clicking this button. Use the same IP range as above. Add 443 as destination port to allow HTTPS traffic. After that, click “add ingress rules” to save the new rules. Now, go back to your VM instance. You can see it is running now.
Install Bitnami WordPress on Docker
Copy public IP address of the VPS. Open the Putty app and paste the public IP address as the hostname and type “Ubuntu @” before the IP address. Under SSH click auth to add the private key that you previously saved. Now go back to the “session” tab and save your session using any name. Then you able to connect it again without entering credentials again. Click open to enter the terminal window.
You have to install Docker Engine on Ubuntu. First, update the packages of Ubuntu using this command.
sudo apt-get update
Use this command to download Docker installing script.
curl -fsSL https://get.docker.com -o get-docker.sh
Run the script using this command.
sudo sh get-docker.sh
Give administrator access for Ubuntu users by this command. Replace the ubuntu with your one
sudo usermod -aG docker ubuntu
Now you have to install Docker Compose. Use this line to load the script.
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Use this line to permit the compose.
sudo chmod +x /usr/local/bin/docker-compose
Check the docker-compose version using this.
Now Download the Bitnami WordPress docker image using this code.
curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-wordpress/master/docker-compose.yml > docker-compose.yml
Use this command to execute the script.
sudo docker-compose up -d
You can see, the installation process is beginning. It takes few minutes to complete the installation. You can find all the commands and guidelines in the description. I recommend following the guide for better understanding. I invite you to signup for the Minex Tuts Form. You can ask and answer the question about anything. Share your knowledge with others.
Now the WordPress installation is finished.
Increase Memory on WordPress Instance
You can use this method to increase the memory of your VM instance. This step is optional, if you want you can skip this.
To see available Memory and swap file size, use this command. You can see there is no swap file.
Create a swap file and allocate space. I’ve used 1024 MB but you can take more.
sudo dd if=/dev/zero of=/mnt/swap.0 bs=1024 count=1048576
Next use this line to mount it.
sudo mkswap /mnt/swap.0
Switch to root account to activate the swap.
Use this to activate it.
echo "/mnt/swap.0 swap swap defaults 0 0" >> /etc/fstab
Next use this command.
check if it’s created successfully.
sudo swapon -s
Check again the created main and swap size for memory. The swap file is created successfully.
Login to WordPress Admin
Copy your public IP address and paste it into the user browser search box. You can see your newly created WordPress site here. Use this path to get access to the admin login area. Your default username is “user” and password are “bitnami”. Use it to login in, after that you can change it.
- Username: user
- Password: bitnami
Next buy a domain to connect this site or use a free domain. I have put a link below, a place to get a cheap top-level domain for your WordPress site.
Again, I invite you to join with Minex community to share your knowledge with others. If this video is helpful like and shares it with your friends. Subscribe for more videos like this. Thank you for watching Minex. See you again.