How to deploy Laravel project on cPanel | Laravel Project Hosting | Deploy Laravel to live server
Tutorial Hosting
Come to nasa soft in this video i’m going to show you how you can upload or deploy your laravel project into the cpanel or the web hosting okay so i’m using the namecheap server so whatever cpanel you are using go to inside the file manager so this is the file manager okay and
Inside here we can upload the our laravel project this is my laravel project okay which i want to upload and you know that inside the laravel project there is a public folder and inside the resources there are all our views and inside the app http there is our controller and so on
The first step is we upload all these files except public okay other than the public we upload all the file accept the public to our route here okay here we create a new folder and then we apply all these file here so outside the public html in the main
Directory inside the cpanel here i make a new folder so click on this plus folder icon and here i name it for example meaningful nasa underscore vp okay create new folder and now the new folder that name is nasa underscore vp is created inside the main directory outside the public
Html okay make sure not create this folder inside the public html okay so this folder is outside the public html now copy all these file of the project other than the public and extract this one inside the zip file so this zip file contain all the file of the project
Other than the public okay so we need to upload now we upload this file inside our new created folder this is not nasty underscore vp double click on this folder go inside that folder and click on the upload this one and from in this approach drop and drop this file or
Select that file the file is this one drag and drop this file here and the uploading is started as the file is successfully uploaded okay so close this one and and here the zip file is showing click on this zip file and here there is an extract
Okay this one click on this extract button and extract file to this folder yes okay extract files as extraction result is completed and all the files are extracted inside the nasir underscore vp folder now okay here now you can find this extracted file as well delete this restricted file
Now is no need of this file delete and confirm if i go to the root and here this is a folder that is nasty underscore vp and inside the nasty underscore vp folder all these file project file are here other than the public folder okay
Okay so the next step is inside the main hierarchy inside the public html now we paste all the inside the public folders file here okay so this is my project and inside the public this is all the files okay copy all these file or extract the file with the same method
With the zip one and after we upload this folder inside the public under html okay that is all the file inside the public folder one so we are inside the public html here we upload all the public file public folder file so here again click on the upload
A new tab will be open and here drag and drop or that file okay the file is this one that we already yet we zipped it okay so this click on this one and the uploading is started as uploading is completed so go back to this and refresh the link
Inside the public html the zip file is public.zip click on this one and extract the file as well extract files file is extracted okay inside the public html and now delete this zip folder so perfect now open the index.php as our main laravel files are inside the root
Nasal underscore vp folder okay so we give that name to this one so double click on the index.php file right click on this one and click on edit and inside the edit click on edit and here mentioned that pro the root project name that is nasir underscore vp and forward slash
And copy this one and same inside the hair okay paste this one and save the file and close so we have update our index.php file as well so for the database changes inside the c panel go to the mysql and here i have already uh developed my db
Okay changes all here okay you can you can make your db as you as it want inside the project here and inside the cpanel uh my mysql database here you can write a user okay user give a username and password to a specific for a specific use of db and after
Creating the user inside the mysql database the last step good management here inside the main nasty underscore vp folder where all our laravel files are here there is a file of environment okay for security purpose it is not showing here okay it is hide basically so in the main project okay inside our
Main project this is the environment file double click on the file and here inside the db connection you want okay you make the name of your database here you can write it at db name okay whatever your db name is and inside the db username here you can write the username and the
Password as well and after writing the all this credential save the file and upload the file again of the environment with the same steps okay so after writing the credentials save the environment file and go back to your cpanel here again upload click on the upload button
Inside the underscore the nasal vp where all the main our laravel files are okay and here drag and drop the environment file that we already yet saved okay and it shows that or you are you want to override file as already our environment file exists in the same hierarchy but it is
Hide so therefore i want to replace click on the yes and the file is being replaced okay if i again refresh the link okay so the file is being saved so this is how you can upload the laravel to cpanel okay if i go to my domain
And click on that domain that is assetsof.com here you can see that all the project is successfully uploaded and shows me the correctly website okay it shows me the website so this is how you can upload your laravel project to your cpanel or any web hosting you uh you are using
With the same steps so that’s all if you have any question regarding to this topic you can email me email is mentioned in video description or you can comment inside the video comment section don’t forget to subscribe my channel for more informative videos stay bless have a nice
If you have any question! Click on the link below and ask your question in the comment section? Question link: https://nasirsoft.com/single_video/121 ———————————– – —Other useful links————— ————- Facebook: https://web.facebook.com/NasirSoft93 Website: https://nasirsoft.com/ LinkedIn: https://www.linkedin.com/in/ muhammad-nasir-6b82379b/
#deploy #Laravel #project #cPanel #Laravel #Project #Hosting #Deploy #Laravel #live #server
https://i.ytimg.com/vi/w1JNkv-GH3A/hqdefault.jpg