How to upload Laravel project on CPanel || Host laravel on Cpanel || WebHosting

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to this tutorial i'll be teaching you how to post laravel application on cpanel if you have a application and you're thinking of choosing a announced campaign and how do you push your live application to just zip on it and configure it to work now i'm going to show you a brief tutorial uh if you look at are the things that will be doing the trail we're going to zip application for localhost then move it to disappointment we're going to zip it in the cpanel id5 prepare the database around artisan and second hardware on our artisan it's a pattern so follow me as i take you through the tutorial um first was our application room in the locals we have application this is my application that is already running so it prepared and it's running it's a small application this prepared in laravel and it's running already so let me check this application locally on my machine so i have my it's already run you can see the application that's database and the aspect of the application is already running so how do i move this application to cpanel such that it should be running online and everybody will see because as it is sitting on my system uh nobody outside that would be able to access it except i make it public so how to make it public is to move the application to cpanel the first thing to do is to zip my application i can zip this application that is already running so i'm going to open my example where it's residing go to my hd dock then where the application paste is the application let me delete this so this is the application i'm going to zip it zipped account this home window so if you're using another os just look for zip from window all i have to do is to send it to um compress so the zipping process has started while this is going on i'm going to prepare my cpanel where the application is going to reside so if you have a cpanel you account sign up on any of the host campaign and see how it's going to work for you so my c panel so this is my cpanel i have nothing running let me check this it's not application you can see it's 4 4 on this mesa landers org it's one of my testing server so now i'm going to come back to my cpanel and the first thing to do is to check my file manager oh something is prompting me the the um is completed uh we have just give it a name s land work so this zipping process has been completed let me go down start let's come to my file manager where the application is going to be so my public that html uh i've packed all the files here so if you don't have yes you can you see blank space or purpose not one so first you can delete them don't challenge them so this is my file uh for my roots directory i have this public.html once you add informative html inside here i'm going to uh upload my zip file so i'm going to drag it here or select so i'm selecting from my c drive exam and the the uh zip what was it this nestline that was it i'm going to upload it this one will once i click it to start uploading another way of doing it is to track the file itself just drag it here just drag the file from here to this location so let me do that it's more convenient for me to do so it's really a performance it's done depends on your network and the size of what you are driving so it has removed so all i have to do is to come here do a refresh so once i refresh and see what has been uploaded geo food it's not there yet so let's see what's going on let's see what exactly is going on so it's been uploaded let's go back it's still not there and this time sites let me go back again upload let's select i should work so there's nothing but then again i will have to do is try it again okay let's use the diameter of this now so let's select the first one to drag now we use we're going to zip we're going to select this and we open it still the same thing but i think this is more effective now because we're having a more sizable fire okay reload actually okay let me go back come back again want to check this one all right it's the after refreshing i discovered that maybe it's the host or something the file it does show up so i have this file so i don't actually need this should go back to so i have this so this is what was uploaded after this to unzip this file just as we have in our bandwagon zip an arranged file so let's unzip the file let's unzip the file right here so refresh you still have something so now let's unzip the file uh extract so we want to extract into the same location so once we are done extracting the file the file is done extracting so we have to replicate this file we can actually delete this we don't need it any longer but let's delete it so we have this um application residence there so the next step to do is to arrange the file such that the application can become visible so let's come to the public these are public we want to move the content of this public folder public folder is inside our application library application so i want to move the contents to the outside outside here such that you no longer have inside this messenger so the contents not the folder now would um open the full file folder then select all the contents then move the content to we're going to move it to outside that's inside our html directory so uh it's been moved that's good so our public folder is not empty there's nothing inside so we can easily delete this you can edit this public so let's delete this don't make it again so now let's move up inside our html we now have a list of these items so what we want to do now is to write a script that will point from our index this is our index page that will point to this michelin where the content app is so also what we can also do is that we can move this content up instead of calling it now we call it our let me rename it to her or you leave it like that you can call it her and yeah anything that you choose that is convenient for you i'll call it uh oh uh let's name it to web let's add web app good now we have webhat which is our uh where our site actually the content website residents so we're going to edit this and point it to web hub so i want to edit so we're going to see because we have a web app inside the um public underscore html so we have a web hub inside suppose we have a web app outside all we have to do is to uh have this we would have something like this that means it's outside so there's no way you proceed where you put your web hack or whatever your called name so a web pub is there and then pointing it to render that auto load i'm also pointing it to the boss trap hub now we're going to put this here why am i doing this now let's we could take a look at our work web app vendor autoload so there's a folder inside this web have that is called bootstrap and i know convento so we have a vendor which is this and there's a file called to load so we're pointing it to auto lock factories is auto load file so that's where we are pointing this is to destroy also these we have bootstrap and updates feature so we have um bootstrap then there is hub.stage so it stopped that speech so we are pointing it that's why we are arranging our folder in this form so once we are done with it what we have to do is to save we try to load our sites now let's say we try to access this yes we've seen errors why we send this error is because the system is still keeping the section of what i have in my localhost and we have to clear the caching and we clear the caching actually want to play catch in our localhost all we do is to write a player cache be something like php sorry let me confirm this before so we're going to have something like uh kaichu will click so if we run this it's going to clear our caching now are now on um our cpanel and how do we run this application we click catchy all we have to do is to um create a route that's what's the function to clear this catcher let me quickly take you through this clip cache to click achieve in cpanel now um i'm gonna show you these uh just gonna copy this you can see it's in a couple of moments so now this is my route this is my local so i'm going to i'm going to check it my c drive i want to identify it where the catch is so back to my web aha where my information is so i'm going to uh locate the routes go to my web then edit this so inside my web i'm going to paste the stem so this is to clear my cache so anytime i call this the url it's going to perform the function that is here so this is a way of running like running php adsense up so when you do this it's going to perform the same thing like a page partition in your local drive so let's save our work and see how we can quickly uh perform this so want to click catch so let's wait for it okay the north side file in the directory done you can see i'm trying it again and it's done it shows that the catch has been clicked because it was shown here that this was this is loca and because we have it here and we have we take that once this is one then we have done the written type now this has been done so let's go back to messy land let's say land up we have access to roads locals deny why we're having this we're having this because our uh database we're carrying the information from our localhost and we're still using the same information on the um on our browser so we have to change the username to the username of our database on the cpanel and uh change the password this is a route that we're using on the local machine so how do we do that we're going to create database uh now c drive let's quickly go to c drive yes this is our c drive so we're going to create in database so i'm going to say patching my admin to this page my admin [Music] especially my id okay uh actually i want to use any database i my local database i should be able to create i can't create i can easily create the database but here you have to do it in another way so you come to this mysql database so for you to create a database for you to get a user now i'm going to create a database let's say test test db so create database it's not existing so the stb is already here so i'm going to copy it i'll go back so i've created database i have to hire the user to do database now i can make use of any of this user if i you know these are the tablets available so i can make use of some of the users that i have so we have users already existing we have admin blah blah blah but i'm going to create another user and assign that user uh give the user the privilege of accessing this copy so is that where i created this let's slam the stp and there is no user assigned to it so all i have to do is to do that uh assign the user here to database how do i do that i after this to select the database uh let's select a user will be an admin then selected the tab is test now i don't want to do that i want to please create a new user so that i can for the sake of knowledge i want to create a name now i'm going to create a root user and give it a password so i'm going to give it a password at this place i'm gonna give it a password so i'm gonna put this so i can easily create a user so the user is uh scripted already let me go back so i'm not going to place this user give this user the privilege i see it's been created so this user is going to have the privilege of assessing our test tv so the user that i just created which is this will be able to use these two types i can assign model one user so we are granting the user their privilege you can minimize reduce the privilege so you add so the privilege has been added to the user if we go back and check the database again we discover that the database now has a user so we're going to check our database now and see if the tab is already existing good can you see our test database is there so the next thing is to now go back to us see our application and locate where our tmv is this way or detect this information on the site so we're going to edit it so this is what we have in our local so we have uh we now have this information sdp then our username is the username that we created so we have let's check again so we have this this type user name so make sure there is no mistake there and the password will be tied as maybe something something something maybe something something so i'm going to pause the video put the password in the application what's the character is i won't be typing my password so all you do is if you set all the parameters where then everything will work fine so let me quickly pause the video put the password there and see if that picture is going to come online on so i'm back the password has been entered and now we have a password in our envy everything set so the next thing is to refresh application and see what we get if it works fine so it's still telling us that this has been denies this in our whole database information then we have to clear the catch again so how do we clear the catch we call the same function that we call the other time so it's done so let's go back and see that question is going to come align or not now the next thing is that the cache has been done it's already sent into that base but he's not seen any table there's nothing inside our database so why do we have that why is that there is nothing because we've not populated anything there's nothing the tables are everything is empty so how do we get this populated all we have to do is to move our sql from our local db which is here these are local dp so i'm going to export these from our local db we're going to export this sql id export export from here you export the content to want to export all this table that we have in this let's say land db tables there everything i'm going to export them in sql formats so all i have to do is to click on go and you can see everything has been exported no it's not a property only i want just but everything so all these tables everything on my questions but so let me just export this now be careful so that this will now come to you i use a spot and as observation that is exported so i'm going to export everything so you can see the udp has been exported now if we go to where it's besides you can see it's quite different let me delete this so that i'm confused so we have this so this would not be populated in our now online so want to move this what i do mostly is to drag this after opening this sql tab then i drag my already generated file there so it's transparent go there depends on the size and how fast your machine is it's done it doesn't take time so let's check if we have the table you can see the table is already there online so let's see the application come online wow it's dead you can see application is now online so if you check this url we're going to eat this application so so far we have been able to um upload our laravel application on cpanel does it if you have any question can you drop it in the comments below thank you for watching
Info
Channel: Tech-Space Solutions
Views: 3,253
Rating: undefined out of 5
Keywords: laravel cpanel, upload laravel project on cpanel, upload laravel project to server, Laravel hosting tutorial, laravel hosting, hosting laravel on godaddy, move laravel from localhost to server, deploy laravel to shared hosting, laravel upload in cpanel, laravel shared hosting, how to upload laravel to a server, laravel deploy, cpanel hosting wordpress, cpanel tutorial, laravel cpanel install, laravel cpanel subdomain, cpanel laravel 8, cpanel laravel project upload
Id: 5iV_QDJaxi4
Channel Id: undefined
Length: 28min 8sec (1688 seconds)
Published: Tue Jun 22 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.