so in the last episode we have done a quite a good job we have created the SSH
key we have restricted any kind of login for root we have restricted login why a
password and the only way to log into our server is via SSH key for this bit
fumes user at bitfumes - tutorial server so let's now see how we can upload or
how we can deploy level app on this server to have level we firstly need PHP
then we need nginx then we also need MySQL as a database and more importantly
we need get so let's see how we can deal with these things so what we have to do
we have to run every command as a pseudo so to have software's on your Ubuntu
server there is a package manager called apt-get so apt-get it's like a composer
or npm node package manager it will manages your packages or the
software's so firstly we what we have to do we have to say apt-get update so
first time we will see an update so let's hit enter and it will update
everything we have already on our human to server so apt-get is updated and
firstly to install PHP we have to firstly check what paper version you
going to gives because you want to already have PHP so to see that we have
to say sudo apt then cache it then search for PHP let's search for PHP and
then you will see we have yes you can see at the bottom we have PHP 7.00 or we
can just say PHP - V to get the PHP version we have PHP 7.0 so how we will
install PHP or the latest HP so installed latest PHP we have to
say sudo apt-get PHP 7.2 - CLI let's see what will be the result CLI hmm it says
PHP 7.2 - CLI doesn't recognize as an invalid operator okay so what we have to
do firstly we have to install a repository so again sudo add app respository
and what that repository is a PPA repository and name is
ondrej/PHP it will provide lots of PHP packages so make sure you will
provide apt spelling right okay and now it will ask you to continue to hit enter
to say yes and this time you can get lots of PHP version so again I will say
sudo apt - search for PHP and then you will see we must have somewhere PHP 7.2
but it's not here because we just have to update our apt-get so one small sudo
apt-get update and let's see what we are going to get so here in just a few
second we get one problem it says launchpad dot net is not there we have
to install that first here so one small sudo apt-get and we have to install a
repository so not get app add repository you can do add app or app add as you
want and then this one and don't worry about this I will paste these things in
the description so you don't have to remember all see what I am typing and
then you have to tab you can just copy and paste from the
description so we have installed that so let's install this is okay this
repository we have installed to install our launchpad so sudo apt-get and
launchpad - get keys this is the software we have
to install so let's hit enter this is because we have to say here install ok
so install launchpad keys now it's installing and it's done
no unable to locate package if you face this kind of problem once more you can
do apt-get update so it will update these things and again obviously we have
error for that repository PPA repository so now let's try to install launchpad
once more and this time it is successful and now what we have to do we have to
say sudo and then launchpad get keys and it is now getting that key and
everything is good this means if I now update we will not get any kind of error
for like this ok so let's now one small update lots of
time we have to update so successfully done and this means if I say sudo apt
cache search PHP and this should get PHP 7.2 this means we can install anything
related to PHP 7.2 so now let's install PHP 7.2 so sudo apt-get install and I'm
going to give Y flag so that it will not ask are you sure you want to install
like that PHP 7.2 and firstly the CLI then PHP 7.2 f p.m. then PHP 7.2 once
more here comes and B string okay and then PHP 7.2 and
here is MySQL so my SQL then PHP is 7.2 curl and then comes PHP 7.1 not -
because 7.2 M crypt is depreciated so 7.1 m crypt
because level need M crypt okay so everything is set up
let's now hit enter and let's see what information we are getting it's
installing everything each and everything now our PHP is successfully
installed so let's see I will say PHP - V and this time it lost 7.0 it's 7.2 for
Ubuntu CLI and everything is set up a lot now we just want to install MySQL
server so sudo apt-get install MySQL - server so it's an easy job and it will
download it very soon so when first time MySQL install it will ask you to create
a new password so I will say password is 1 2 3 4 5 6 ok 1 2 3 4 5 6 once more and
till then continue its downloading so now you can see MySQL is successfully
installed so if I say my SQL then I will say - you for user which is all already
root and then password and hit enter and 1 2 3 4 5 6 and you can see we are on
MySQL so if I say show databases and close this line hit enter yes we have
the database so now exit from here ok then what we have to install sudo apt
install but apt-get install nginx and that's supremely important thing so yes
I want to install that and now engine X is also completely installed so if I go
to flash let's say ll then ET c / and it's visit the list of the things we
have so this time on the etc folder EDC folder yes we have nginx folder this
proof that yeah we have nginx and then the next part engine X after engine X we
need the git and so install and get also and git is also install so to have the
git git - V and it says I think we have to say version is that double okay
yeah so git version is two point seven point four so gate is also installed one
last thing we have to say to install which is kit and then zip and unzip this
is also required by the computer when it download the package and by the way you
can do all these things in a single line I have just shown you to shown you
separately the MySQL then in genetics then gate you can just simply say zip
unzip gate then engine X then minus QL - server all these things okay so that
will save your time so zip unzip and that's all so finishes these things so
we have covered many things we have installed the PHP then we have installed
the engine X we have installed - ql server we have installed get even
more we have installed zip and unzip so these things we have installed
and in the next episode we will see how we can connect github repository of
lateral to this server via gate and see how we can configure the nginx to have
the level project on life so if you have not subscribed please go and subscribe
don't forward to share this video with your developer friends so that everyone
gets the knowledge of best thing called level and also the server configurations
and don't forget to like but films on Facebook Twitter and Instagram so till
then good bye