Let's install Wordpress on Docker using an instance on Oracle Cloud – Ubuntu 20.04

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everybody my name is alan from sauber lab and today i will show another video about oracle cloud in this video we'll show how you can install your wordpress in one of instance of the oracle cloud in this installation we will follow the docker installation my idea is to have one container that have the wordpress another container that have the proxy manager another container that will be managing the cloudfare in this case it will install the cloudfare and in this way you can have more than one containers you don't need to dedicate this machine specifically for the wordpress but you can have a wordpress install with plus some others applications if you like this idea and want to learn a little bit more about it we're gonna show in this video but first of all don't forget to leave a like subscribe for the channel and let's do it [Music] before we start to do any installation go through anything we need to understand what we need to have first of all you always have the option to come here and put deploy the web press website where they're gonna do the installation for everything for you but i don't like this idea because i don't want to lose the control of my machine basically they will create an instance in this case that have already the wordpress install but why we cannot install a different machine that will have a separate wordpress and everything it's a good idea so we're gonna do this way in this way we need to go for create a virtual machine the virtual machine that we're gonna create will follow the following step first of all we need to define what operating system that you're going to run i can run this virtual machine in oracle linux yes but in this case i would like to run in aubutton so i come here change image and i select ubutu image have selected the overton image i will put select enter and now i have the overtone image running what else i need to do i can find what kind of machine that i want to run in this adm machine i have only one v core one gigabyte of run and uh zero forty eight gigabytes of uh internet but is not good enough for what i need so i can come here put through change shape i can come here unpair and i can select it remember if you get this free option you can have up to four cores and 24 gigabytes of run so it's quite well and in this option as well we have a 4 gigabyte pass because i will produce a wordpress with low traffic i don't need to have a far course i can have only one and will work quite well have this one i will put select shape i will go down and now i can select what kind of network that are gonna work in this case i will leave this standard one where i have all my virtual machines i need to download my private key and my public key principle my private key otherwise you cannot access you through the ssh and i will put encrypt and i created the image here in my image i already have all my informations alright i have my ip address my user because i'm use a ubutung account so it's not anymore opc user will be ubuton user as well here it's my internal network and here all the information that i have here it's because i just installed the machine so they will have only the installation period and after this one will not have anything because it's a fresh install what we need to do it's come here in my view to all cloud network and open some ports uh the parts that i will need to open is part eight one eight and four four three where i will install the uh proxy manager and we'll manage these parts as well i will need to go to the port eight thousands where we'll have the wordpress and the port 9000 where will be the portrayed after you do all the installation you can close some parts because it's not necessary to leave all those open but in the first step you need to have this because you need to configurate your portrait you need to configurate your wordpress you need to configure your proxy manager so you're going to need those parts have this one in mind first thing that we're going to do is open our putting here our putter already login with ubutu and if you don't know how to open the put and configure to your ssh to access it with your private key don't forget to look the video before i will leave in description this video you can look this video and try to understand some points that i didn't explain this video look like how you can configurate the port forwardings and how you can configurate your public key to access for truly put everything in mind now we need to start to do our installation to do our installation first thing that we're gonna do it's logging as a root so we're gonna put sudo so and now we are root we can go out for any folder and now we are in the root in the basic folder for our system now we need to update our syst so we're going to get apt get update and we're going to run it because i already run it before it's really fast but maybe we'll take a little bit longer for you now the next step we need to upgrade our system so we're gonna do exactly the same step api get upgrade wonderful they upgrade our system now what's the next step we don't have anything installed so we need to install the docker in the docker we can start to install the portrait to manage our application we can start to install the proxy engine and we can install the uh wordpress in order to install the docker we first need to install some applications will be these ones suit up things style ca certification core jtpg and lab release and that's we're gonna run it once that all those has been installed we needed to add or copy the official gpg key so we're gonna run this step core fs and download and we have our gpg because i had a reading style they asked if i want to overwrite but i'm not do it now the next step we needed to follow this installation that we're going to run this second step after you have this echo installed we need to update our system in order to be sure that everything is working well so we're going to do sudo apt-get updates and we finish it to update our release now yes we can install our docker in order to choose our docker will be this fully step sudap get installed docker c docker click and docker container so all the application has been installed we can check if it's really working well in order to check if it's work well we're going to install the basic application that some ever exist hello world to install the hello world we're gonna run the follow script sudo talker run hello world perfectly fab hello from dockers means that's a hello world is work and docker is working so now we need to install our portrait to install our portrait we'll follow the fall installation first we need to create our volume for our portrait so we're gonna do pseudo docker run volume portrait underscore dot after created this volume now we can install our portrait in order to style our portrait we're gonna follow this folly script don't worry this descriptive description so you can only copy it and run its notation at all after you finish to install your portrait you need to go there in the portrait and create your user account even your password remember to access our portrait we're going to need to login with our machine ip address plus part 9000 once that to finish creator use we're going to see this follow page so we can open our primary and we come in container and we don't have anything because already delete hello world so i can come in here in stock and it starts to create our first stock we're gonna come here and click add stock the first stock that we're gonna create will be the cloud fair so i can come here in this image for the cloud fair don't worry this image is in description you can only copy this link and go there to access remember this image will work with arm so our system is arm system it's perfectly will work quite well so we come here and we copy all this information come here back in our portrait and we can start to modify it what we need to modify and we need to define our api key i'm not sure my ap here because otherwise you guys can have access for my website and i don't want to do it this zone that we're gonna use will be the sauber lab.com my subdomain that i'm gonna use will be website and i want proxy yes i want prox so will be true and after this one i will add my ap key and put deploy the stack once that i finish deploy this stack here my cloud fair will be work and that's in the cloud fair website that will already show my new subdomain now the next step that we're gonna install will be the proxy manager so we can come here and put add stock and uh in order to install our proxy manager we come here in our proxy manager and put get start and i come here and here it's all the configuration for my proxy manager i don't know why they change it but before i have all the information for the database that you're gonna use and everything but don't worry i have a copy of it so i can only come here and paste my proximate information and the same docker compose will be available in the description of the video so we can go there and copy this local compose will be easy for you so here i got my docker compose script and now i started to modify and explain some information first thing the parts that you're going to use as i told you need to open the part 8 and part 443 to have access for http protocol and https protocol as well part 81 to be able to access our proxy manager now the database information so the database host will be database the part that i'm using 3306 and my user will be sober lab and password for the user it's test123 the name of the database will be this one and now the volumes as i like to save everything in the same place i will save everything in my phone mmt i will define everything in the same location have defined my volumes i needed to be sure that my database information and my approximate information will be exactly the same otherwise they will not connect with each other everything in place i can come here and put deploy this stack it will take some minutes until they finish download matching and install so now i will do the installation for my last image my last image will be the wordpress the idea for the installation so i can come here and put add a stock and define the name wordpress now i can come in the wordpress website and i can copy my volume here my volume is already here everything i can come back in my portrait and paste it remember version 3.9 will work yes we work because we are using the portrait 2.9.2 if you we are using all the revision of portrait it will not work and you need to do as a docker compose directly in the putty but we're not going to do it one thing to consider mysql we work with arm base no not work with armbase because they needed to work with c86 and 64 bits so i needed to change the image the image that i was gonna use will be maria db in this case i come here down and i will look for my docker compose and i cop the image name and change it for exactly the same name as well come here and look what else in each modified if i look at the volume they use as a two dots config so i cannot use the same volume that they expect fine here so i need to change it for config and now i think that's i modify everything that i need to have so now i needed to find the location of my volume i will be slash mnt and word press and slash i will make the same volume for my wordpress configuration i come here and modify it and now i know that my wordpress database and my wordpress configuration data will be exactly the same place if i wanted to backup in an external way i can go there only copy all this wordpress folder for another place and that i can only migrate for another computer or another server have everything in place now we need to modify my user password and my user password here in this case i will leave exactly the same because it's easy for me if you are doing your own configuration i really suggest that you change it because otherwise you're gonna be in trouble because it's not security enough have everything in mind now we can come here and put and deploy the stack wonderful i just finished to install my wordpress now what we need to do we come in contain and we're gonna check if everything's work first let's see what we have installed so far we have the wordpress and wordpress database that's great i have the proxy manager database and the proxy manage application and i have my cloud fair management address so here i come in my wordpress and putting log and see that's its complete wordpress susfest phone so yes has been styled all right so it should be running and the second thing that we need to check it's the proxy manager and putting log and no issue at all so should be working if they say renew complete reloading proxy manager so it's everything it's working well so what we need to do we need you to come here environmental and primary and put exactly the same ap address that i have here only because i want to go in the container click there and they will directly automatically for the port that i'm using have modified it i can update environmental company in my container and go for the part 81 once that i opened the part 21 there i'd appear this page so i can come here my approximate website and i need to choose this user and this password and then i will follow this step to modify my user and create my user for manage this proxy manager wonderful if you did everything correctly you should have your user account that has been just created and in the dashboard proxy host we can add our first website the website that we're gonna add we're gonna add a host will be website dot sauber lab.com i click it and my port forwarding will be initially the same ip address for my machine so will be 132.226 to 14.65 and the port 8000 i can use my internal ip address yes you can use but in this case we're not gonna use we come here in my ssl and we're going to create a new ssl we come here and put create a new ssl use a dns challenge i will select s provider as i'm using the cloud fair i will put cloudfare and now i need you to modify my token don't forget to put the correctly token otherwise they will not validate and don't do the properly challenge okay once that i finish each configuration my website they should appear that's online we can come in details indeed and i forgot to put websocket support block common explode i come here in ssl i need to reinforce all these options i don't know why they didn't keep it and now the certification that i'm using is this one website dots soberlab.com and i come here and save have everything in place now we're gonna check it we can come here and put website and wonderful they read access it and they show website and now we start the configuration for my wordpress i have here i select the language that i want english and i come here and continue once that they finish to install the red appear okay everything is installed wonderful we can come here looking and wonderful now we already have the wordpress installed working outside your house directly in oracle cloud in this way you will still be able to install more containers your instance and you have your wordpress working and everything should be all right so guys i hope that you like in this video i show how you can install the wordpress in your oracle cloud in this way using the always free you have always free website if you like this video anything that was interesting don't forget to leave your like consider subscribe for the channel and see you next time bye
Info
Channel: Sauber-Lab UK
Views: 178
Rating: undefined out of 5
Keywords: Creating your VPS, Creating the VM in the cloud, Installing the Docker in Oracle, first steps with the Oracle Cloud, creating your instance in the Oracle Cloud, Online Virtual Machine, Using Oracle Linux, Linux in the cloud, Virtual Machine in the Cloud, Wordpress in the Docker, wordpress in oracle cloux, Wordpress in VPS, How to install Wordpress in a VPS
Id: YpQwtSEvz4c
Channel Id: undefined
Length: 16min 29sec (989 seconds)
Published: Fri Nov 26 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.