#php #ubuntu #CICD Deploy php application on ubuntu server on virtual machine

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone hope you all are doing good today we will learn how to deploy a simple php application on ubuntu server on virtual machine for this we require phone this project demo which i have created in my gitlab dot test instance this is the local instance as i have mentioned in my previous lectures so from here i will clone this project into my linux production server here for this i'm using putty to do this here i am so let's uh first check or switch to the user which we have created the name of the user is a deployer one so it's sudo su deployer one password so we have switched to our second user which we have created here deployer one but if we check the path it is still whom under uh slash we also need to switch to the path the same path so i'm coming out of my directory and if i l is here you can see we have to switch into this deployer one so cd deployer one enter okay so if we check the path here it is home deployer one right here we will get clone our project so from here we can copy this is the copy command and here we have pasted it since we have gitlab.test not bitlab.com so i'm writing here gitlab dot test is asking for fingerprint i will say yes and we are waiting for the project to get cloned i'm just pausing this video for now as you can see uh the project is now cloned if we ls we are here second demo we will enter into this folder second demo and if we will ls here so i'm having these three files right these three files i'm having and if we check here in the folder so there are also the three files now for apache to get connected we require its ip address so here is the ip address 192.168.56.108 i'm copying this and paste it over here as you can already see this apache is on now this works on port 80 and here we are and now we will check our best start php application and press enter it's saying uh url not found right for this we first go to the putty o cd where ww html and we have to get clone here is showing a permission denied please try again later let me enter my gitlab test password again okay maybe i forgot my password let's try one more so here it is showing error uh could not read the remote repository please make sure we have the correct access rights uh let's try to figure out why it's happening as you can see uh we have we got a permission denied in order to resolve the permission denied issue i have assigned a permission 777 to my rare wwe html folder uh with sudo xs so when i changed sudo ch mode minus are this and i have copied uh this particular folder to this place and here i have given the command ls minus a and here you can see sugan dash demo is showing here right now i switch to my ip address this apache and here i have done one mistake i have to give here sugan demo slash test.php and what is our expectation a small simple php application should get deployed here on the server and if i press enter a calculator should appear right so here i'm pressing enter and here you can see php simple calculator program which is working fine so here if i give 4 and 5 and so this is working perfectly fine here that's all for this lecture thank you and have a great day
Info
Channel: Sugandh Khanna
Views: 2,074
Rating: undefined out of 5
Keywords:
Id: v-8qh279WVQ
Channel Id: undefined
Length: 6min 47sec (407 seconds)
Published: Fri Feb 04 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.