How you will deploy or install WordPress in your Rdb or VPS servers

 Welcome to shebagor360  today I'm going to show you how you will deploy or install WordPress in your rdb or VPS servers I'm creating this article because I got a lot of commits regarding that and many of them said we have a VPS or our Linux Rdb servers and how we use that VPS or rdb servers as hosting in order to deploy our WordPress websites 

How you will deploy or install WordPress in your Rdb or VPS servers

so guys before starting if you are new please subscribe to this website and hit the bell icon so that you never miss the latest amazing videos so guys without wasting time let's go to the practical side, first of all, you need to open your browser and go on google.com and you need to download one software that is named as putty is basically an ssh client that will help us to access our VPS or rdb system on windows operating system so you need to download


 the putty and install it I have already installed the putty in my system so guys double click on a putty software nowhere what you need to do is you need to give the hostname of your VPS server I'm giving my own and give the port upon which you have access on a VPS server and usually it's a 22 port my VPS is basically working on this port so I'm going to access it so here what you need to do is typically I will give the password of my VPS now I am inside my VPS server and clear that so we need to execute some


 different commands here you can get the VPS I have already created a lot of Articles on the VPS for the demo purpose you can use them and if you phone any kind of problem I will also give you another VPS in order to install the WordPress on your VPS server you need to execute the different commands here I will provide you all of these commands in the description so don't worry about it now we are going to execute the commands one by one


 copy that first command and execute it's updating all of the libraries of your ubuntu clear it after that now execute the second command here that will update all or upgrade all of the libraries that you have updated recently now wait for a moment it's updating now you have to it will take some time so you have to wait now 20 seconds okay now after successfully downloading it's extracting all of the packages and upgrading them you have to wait here now it's updating all of the packages and we can see a progress bar here so you have to wait now I'm basically using a ubuntu 20.0 the latest version you can obviously execute all of this command on any type of Linux distribution so okay after successfully updating of all of the packages what we need to do is we are going


 to install the apache so over here simply copy the third command and run the apache wait for a moment why we want to install it now guys you will see it's updating or installing the apache in on your VPS server so you have to wait now for apache is basically helped us in order to run the PHP code so you have to wait here so after installing the apache we need to install


 the mariadb here mariadb is exactly the same as the MySQL uh DB so we have to install the server as well as the client-side of the mariadb as well so simply copy the fourth command in this single command I am going to install both my DB server and the Mario client in on in one command so okay yes we want to install it so you have to wait now it's fetching all of the libraries of the mariadb and installing into your VPS ubuntu based system so you have to wait now so if you get this kind of package configuration simply hit enter here 


now it's installing all of the configuration files in your VPS server you have to wait here now after successful installation of the Mario DB we need to execute let me clear the console first we need to execute the next command here in order to install the PHP so copy that PHP installing yes okay you want it so after installation of the PHP again clear it now after installation of the PHP we need to install some different packages of the PHP as well so execute


 the next command here that is the sixth command installs the MySQL in your VPS okay give the permission by entering y here make sure that guys if you are new on my channel please subscribe to my website and hit the bell icon so that you never miss the amazing video so after that, we need to install the client of the PHP copy the seventh command and hit enter so you have to wait here okay we have successfully installed the CLI clear okay then we need to install the command of the PHP as well that will help basically the WordPress website smoothly okay installed clear it then we need to install the gd that is basically a PHP library now after successful installation of the all of the


 PHP libraries now we need to get the WordPress and download the WordPress first by using the 10th command now it's downloading the latest WordPress from the wordpress.org now let's see the WordPress is downloaded or not by using a command of ls now guys you will see latest.tar dot gz file is downloaded now so after that we need to extract that file you can extract this by 11 command here copy it by using a tour paste here hit enter


 now it's extracting now guys let's see it's successfully extracted or not so by entering the ls here now you will see the WordPress folder here now we need to execute some different commands as well we need to copy our WordPress website into a www HTML directory so simply copy the next command this command basically copies all of the files from the WordPress folder and paste them into the war slash www slash HTML folder after successful copying the all of the files from WordPress to the www.html directory we need to give the permission in order to read and write simply copy the third command here and paste into your VPS terminal okay we got the permission 


now clear it now guys after that you need to navigate into the war slash www slash HTML folder so we are successfully changing our directory so let's ls now guys we can see we have copied all of the files from the WordPress directory into a www.html directory now one step that we need to do is we need to remove that index.html file so in order to do this we need to execute the next command here simply copy the next command and paste here now let's see it's removed on ls now guys you will see we have successfully removed the index.html and our index.php is here so next what we need to do is you can simply


 again write the cd and come back to your original directory here and clear now execute the next command in order to stop that MySQL and after that, we need to give the root permissions stop it okay it's asking for the password okay we can keep the password here okay let me do this with Sudo okay that's great we have successfully stopped now clear it now gives the root permissions by copying the next command 16 here paste here so after what you need to do is you need to restart or again start MySQL copy the next command and write it with the sudo okay that starts clear it now guys after that we need to perform


 next step here and we need to install the MySQL secure installation copy the 18 commands and paste into your VPS terminal here now they will ask you our root password so leave it blank and simply hit enter here and set root password yes we want to set the root password and you have to give the password whatever you want but you have to remember it I'm going to give the quick password here and okay that would basically help us in order to get the access of your mariadb so next is remove any yes we want to remove 


the anonymous users and yes we want to disallow the root login remotely as well now obviously we want to remove the already test database here enter y here hit enter okay give the privileges all of them okay great we have successfully added the mariadb so after that we need to access our MySQL by this command simply copy it and we need to create a basically a database and in a database, we need to create a table as well and give all the ground up privileges in order to install the WordPress so you do this command


 here and give the password that you have recently added and great we are in the MariaDB as well you can see how we need to execute some different commands and we need to install the database in it so copy that 20 command here and paste to your IDP ok great we have successfully created a database with the name of the WordPress we need to create a username for the WordPress database you can obviously change the username


 the instant of admin and give the password instead of My pass*** as well so I'm going to execute this command here copy it and paste enter okay great we have successfully added a user for the database of WordPress and we have to give the r of the grants and copy that command and paste and linking the WordPress with our admin user okay great we have successfully linking our database with our user as well and giving all of the privileges as well now we need to exit it control set great we are exit okay in next step so after that we are able to access our WordPress website so guys after execution


 of all of these commands let's see our WordPress install on our VPS server or not so this is basically my VPS address so great we have successfully installed the WordPress you can select the language according to your need and click on a continue button and click let's go and the name of the database is WordPress and quickly I will give the username that I have already set my password was hack tech tv and you do not change in the database host and the table prefix now simply click on submit button here okay that's great now click on run the installation and give the site name whatever


 you want and quickly give the smash Article here and give the username whatever you want okay let me give the name or username that is let's suppose admin you can give whatever you want and the password let's suppose tv give your email address and click on install WordPress okay guys we have successfully installed the WordPress owner VPS and simply click on the login button and give the username that you have recently set now quickly click


 on a login button here oh that's great we are in the dashboard now and you can install the theme and plugins whatever you want and visit that site great we have successfully installed the WordPress and if you guys like that Article please subscribe to my website your support will give me more strength in order to create more amazing Article for you guys

 Thank you 

3 Comments

Previous Post Next Post