How to Deploy Laravel on Shared Hosting in 12 minutes

  Рет қаралды 62,849

The Codeholic

The Codeholic

Күн бұрын

🚀 Get 3 months of Shared Hosting FOR FREE + FREE domain. Check hostinger.com/thecodeholic. Use coupon code "THECODEHOLIC" for an EXTRA 10% OFF 🚀
You probably know how to build basic Laravel applications, but do you know how to deploy it on production environment with custom domain?
In this video you will see how to get shared hosting, how to connect to the hosting server using SSH, how to clone the project, create MySQL Database, run the necessary terminal commands and deploy Laravel example application on custom domain with SSL.
🔥🔥 Check my Laravel E-commerce course at thecodeholic.com
Timecodes
------------------
00:00 - Introduction
03:04 - Setup Domain and Hosting
04:19 - Install SSL Certificate
05:21 - Install Laravel using SSH
11:32 - Create and Configure MySQL Database
12:49 - Outro
Support me by subscribing - bit.ly/2xTQOI0
If you really love my content and want to support the channel:
👉 My Patreon: (For monthly donation)
/ thecodeholic
🍺 Buy me Beer: (For one time donation)
www.buymeacoffee.com/thecodeh...
🖱️Follow me on social media:🖱️
/ thecodeholic
/ thecodeholic
/ thecodeholic
Check my Github:
github.com/thecodeholic

Пікірлер: 103
@rolandjethrosuyom478
@rolandjethrosuyom478 Жыл бұрын
Thanks sir, I spent a week to figure this out. You saved me. Salute to you sir.
@mohammedattar3628
@mohammedattar3628 Жыл бұрын
The idea of creating a symbolic link of public_html is live saving thanks 💙
@ilyesmilyesm2576
@ilyesmilyesm2576 Жыл бұрын
Thank you so much this is very helpful !
@MarcelleMunizmg
@MarcelleMunizmg Жыл бұрын
You saved my life! THANK YOU!
@kaveeshbhashitha7652
@kaveeshbhashitha7652 4 ай бұрын
Very simple, very useful. Good job 👏
@kingsley.uchenna
@kingsley.uchenna Жыл бұрын
Thank you for this video.
@shbita
@shbita Жыл бұрын
great video , thanks man 🙏
@wsqplm
@wsqplm Жыл бұрын
Thank you, just got the 48 months Business Web Hosting plan using your code.
@TheCodeholic
@TheCodeholic Жыл бұрын
You're welcome and good luck with your project deployment. That hosting will be enough for you for next 4 years. You can create 100 subdomains and 100 websites.
@skykhanncanoeboy
@skykhanncanoeboy Жыл бұрын
Thanks a lot! Just used your promo code ;)
@user-zn7fm1su8x
@user-zn7fm1su8x Ай бұрын
Thank you Zura, You are the best!
@narebinhaa
@narebinhaa Жыл бұрын
Is it possible to deploy a monorepo Laravel + React in the Shared Hosting? I don`t know much about Lavarel but I already have a React frontend app. And Laravel seems to be a good option to build a monorepo with React.
@NeilMyatt
@NeilMyatt 15 күн бұрын
Thank you sir! You save me a load of time messing around creating symlinks and failing to get it set up right
@alancarlosml
@alancarlosml Жыл бұрын
Amazing!
@tharushafernando6688
@tharushafernando6688 Жыл бұрын
Is it possible to hots jetstream inertia project on shared hosting ?? I have seen many people saying its a bad practice to host jetstream inertia projects on shared hosting
@ahmadalharbi9097
@ahmadalharbi9097 Жыл бұрын
Thank you so much , just in time
@aldrinaureus7255
@aldrinaureus7255 9 ай бұрын
Hey thanks ! I used your video as a guide to create a github action to deploy my Laravel App on hostinger - i skipped the composer install part so i put the installation of laravel dependencies on github actions instead. Hostinger will only get all stuffs including vendor files
@muhammadissasabbagh1540
@muhammadissasabbagh1540 10 күн бұрын
Thanks a lot, I haven't found any solution for the composer version issue like yours, Great job
@YourVinayShukla
@YourVinayShukla Жыл бұрын
really helpful
@khanaqib7871
@khanaqib7871 Ай бұрын
can u plz confirm when we build asset using vite the styles are not loaded. the build folder is also present in public/html in localhost its working fine but on remote css showing not found
@skia515
@skia515 5 ай бұрын
your videos are so usefull
@tvjmohan
@tvjmohan 3 ай бұрын
Nice... Helped me
@nilakash8430
@nilakash8430 Жыл бұрын
Great video! I've been struggling with deploying my Laravel project on shared hosting, but your tutorial made it seem so simple. The step-by-step instructions were easy to follow and the video quality was excellent. Thank you for taking the time to make this tutorial and helping us out. Keep up the good work! Would you please share us how to install Node and NPM
@chawerkamanga2199
@chawerkamanga2199 Жыл бұрын
Co asking
@LeonelLopezBorbon
@LeonelLopezBorbon Жыл бұрын
I bought this plan use your coupon! Thanks!!
@TheCodeholic
@TheCodeholic Жыл бұрын
I think you got great deal.
@cristhianjhlcom
@cristhianjhlcom Ай бұрын
Hello, I have a few questions what kind of projects do you recommend for sharing hosting? and you can use just one VPS service for multiples projects?
@Zabihullah_Danish
@Zabihullah_Danish Жыл бұрын
Thanks great content really useful.
@ahmedmissaoui907
@ahmedmissaoui907 11 ай бұрын
Great video , but i still have a problem , after following all your steps , i still get 404 not found instead of my site content, what to do in this case ?
@thahawahid6200
@thahawahid6200 Жыл бұрын
I generally FTP the whole thing. You just gave me a nice idea to symlink the public_html folder. Thanks :) Very helpful. Someday I will get to running npm commands right in hostinger.
@cank4286
@cank4286 11 ай бұрын
is ftping all things including vendor enough for deployment?
@ahmadfraz5846
@ahmadfraz5846 2 ай бұрын
how do you run "npm run prod " for frontend css compilation?
@DavideLobascio
@DavideLobascio 3 ай бұрын
I have some questions... - How to correctly run a subdomain to make a test version of the project? I created a sub domain (hostinger create it in the public html), run the composer, key, db, migrations, env and all, but i get a 403 error. - On a share hosting is impossible to install node.js and run npm install? - On a share hosting does the auto-deploy from github works correctly? i have some issue about that
@user-el8gf3ly4g
@user-el8gf3ly4g Ай бұрын
have you any idea for use mongodb with laravel 11? if yes then guide me
@ahmedmohamed1642
@ahmedmohamed1642 9 ай бұрын
thanks you - what if i want to deploy on subdomain ?
@twicetherabbit
@twicetherabbit 11 ай бұрын
Incredible video👏 Been struggling with the hosting until I watched your tutorial, and now I'm running my web app successfully. This really helps a lot, Thanks!
@TarekFellah
@TarekFellah 7 күн бұрын
Should i change APP_URL to the used domain URL?
@SteveCreekmore
@SteveCreekmore 3 ай бұрын
Artisan command not executing on server - any ideas? rwxr-xr-x artisan
@Ролтун
@Ролтун Жыл бұрын
I will see it in a future
@raadkasem
@raadkasem Жыл бұрын
Thank you, Great video I need help please. How to run "Node" on Hostinger premium shared hosting?
@guilhermedinizl
@guilhermedinizl 10 ай бұрын
I also would like to know. Did you find some way??
@gurugaming5884
@gurugaming5884 9 ай бұрын
note: it only works with the main domain database and you have to update your main domain php version. I was trying to deploy it on a secondary domain on my shared web hosting but getting a php version error. Then I updated the main domain php version and it works. The same goes for database
@wego-k4811
@wego-k4811 7 ай бұрын
I love this video. It was very helpful to me. But I tried creating a laravel project using Jetstream as the Auth package but I was unable to compile the js assets. Just wanted to know if there is a fix or should I do everything locally and just upload when it's done
@TheCodeholic
@TheCodeholic 7 ай бұрын
npm command is not available on shared hoasting, so you should build js files locally and upload them on server. You can commit these files on git as well
@BobDoe_69
@BobDoe_69 Жыл бұрын
nice, basically for this to work the shared hosting company must have/provide ssh access
@TheCodeholic
@TheCodeholic Жыл бұрын
In my opinion if shared hosting provider does not support SSH you shoul not take its hosting
@Umair_log
@Umair_log Жыл бұрын
my project was pending for a week. but now ❤
@razvanpreda5841
@razvanpreda5841 Жыл бұрын
Why not which composer? Hostinger has a symlink to composer2 :)
@mikimiki4724
@mikimiki4724 Жыл бұрын
Just bought your course, you re true legend, and descret hero! Mr you re the best! I have one guestion for you, can you give me sugestion where to find best place, site for learning linux administration and pass and get certification?
@TheCodeholic
@TheCodeholic Жыл бұрын
Hi Miki, Thanks for your nice words. Unfortunatelly I don't know the best place for linux administration. Check freecodecamp videos, Udemy and coursera. Maybe there is something there.
@shashanksrivastava5560
@shashanksrivastava5560 4 ай бұрын
thanks for this but the problem is the routes are not working as it says 403
@asdbal12
@asdbal12 14 күн бұрын
excellent content, what about if you have vite in your laravel app? how can I configure that, please?
@TheCodeholic
@TheCodeholic 14 күн бұрын
Check deployment video from my playlist of building social media website
@andrej513
@andrej513 Жыл бұрын
Hi, I did everything and my simple website is up and running. But how do I run npm install and npm run dev?
@gangnamman133
@gangnamman133 Жыл бұрын
Also wondering on this. Did you find anything out?
@andrej513
@andrej513 Жыл бұрын
@@gangnamman133 as I understood you can't do this on shared hosting, i just compile the css/js on my local and pull it on the server from my git repo
@Ethan_404
@Ethan_404 Жыл бұрын
Amazing sir... would u make another tutorial for the laravel staging site in that hostinger? Sry I'm not familiar with servers. Thanks 😍
@TheCodeholic
@TheCodeholic Жыл бұрын
That's actually a really good idea. Having two subdomains: dev.laravel-example.com - for development staging.laravel-example.com - for staging Is that what you mean?
@Ethan_404
@Ethan_404 Жыл бұрын
@@TheCodeholic yeh sir exactly 🥰
@ysammo214
@ysammo214 10 ай бұрын
​@@TheCodeholicdid you ever get around to doing this?
@TechBuddy006
@TechBuddy006 Жыл бұрын
Can you show load tests with 100s of products or blogs within the same hosting.
@TheCodeholic
@TheCodeholic Жыл бұрын
Hundreds of records will not be a problem I think. Even thousands will not be a problem. The problem will be if thousands of users access the website at the same time.
@kifaru.
@kifaru. Ай бұрын
can you make a tutorial on how to install multiple laravel website on subdomain with hostiger
@danielsandnes6210
@danielsandnes6210 3 ай бұрын
No idea if this is new, but Hostinger comes preinstalled with both composer 1 and composer 2, but to use the latter you need to use the composer2 command.
@TheCodeholic
@TheCodeholic 3 ай бұрын
Thanks for the comment, I discovered this few months ago
@khayriesports2754
@khayriesports2754 Жыл бұрын
How can we update our website whenever theres a new code? Thanks!
@TheCodeholic
@TheCodeholic Жыл бұрын
You need to login via ssh, navigate into projects root folder and run git pull
@Gift-op6mq
@Gift-op6mq 2 ай бұрын
What about deploy on aws
@jhumerapus1881
@jhumerapus1881 Жыл бұрын
hi how can i paste it? hehe
@peterchisangamwamba9100
@peterchisangamwamba9100 Жыл бұрын
Can you make or do you have a video on how to intergrate a payment system like Stripe into a Laravel appliication?
@TheCodeholic
@TheCodeholic Жыл бұрын
I have video on the exact same topic
@peterchisangamwamba9100
@peterchisangamwamba9100 Жыл бұрын
@@TheCodeholic Alright thanks a lot 🙏🏾
@matthewkk5087
@matthewkk5087 10 ай бұрын
შენი ვიდეოებიმაქვს ნანახი მემგონი აპოლო 11 ის არხიდან, მიხარია რომ ახალი გვერდი მოხოდე
@giorgigeorge1003
@giorgigeorge1003 Жыл бұрын
Please make video about setup vps Ubuntu server with php, MySQL, Laravel and domain on vps server
@TheCodeholic
@TheCodeholic Жыл бұрын
Thank you. That is in my plans.
@giorgigeorge1003
@giorgigeorge1003 Жыл бұрын
@@TheCodeholic please give me some good tutorial to set up vps server Ubuntu php MySQL Laravel and domain
@TechBuddy006
@TechBuddy006 Жыл бұрын
@@giorgigeorge1003 just use cloudpanel that's all you need.
@plombir4964
@plombir4964 Жыл бұрын
What about npm run build?
@pablohernandezvillegas6553
@pablohernandezvillegas6553 8 ай бұрын
hi, could you do it?, I have same issue
@prospertogether1791
@prospertogether1791 6 ай бұрын
you have composer 2 installed already. So you can just use composer2 as the command in place of composer e.g. composer2 install
@TheCodeholic
@TheCodeholic 6 ай бұрын
Really? Does command "composer2 install" work?
@coddingmall3477
@coddingmall3477 Жыл бұрын
Kindly do a video hosting in a vps too
@TheCodeholic
@TheCodeholic Жыл бұрын
I think I will make it.
@coddingmall3477
@coddingmall3477 Жыл бұрын
@@TheCodeholic thanks you again and again.Have just bought ur vue and Laravel e-commerce course.Thanks again for the offer
@veenitchauhan6131
@veenitchauhan6131 Жыл бұрын
403 Forbidden Access to this resource on the server is denied!
@julianadelosrios9876
@julianadelosrios9876 8 ай бұрын
and now how i edit the front page
@TheCodeholic
@TheCodeholic 8 ай бұрын
Like you normally would do in your project. Edit, commit and push, then pull on server.
@tarunkumardewangan4239
@tarunkumardewangan4239 3 ай бұрын
laravel next js and mysql deploy please
@cvairlis
@cvairlis 8 ай бұрын
I am the first who clicked the laravel-example domain? It redirects to KZfaq `Rick Astley - Never Gonna Give You Up (Official Music Video)` Oh my god. Thank for your video.
@lindanidube5654
@lindanidube5654 2 ай бұрын
I thought it was going to be easy
@JACKoPL
@JACKoPL Жыл бұрын
And now... how update site on shared hosting, adding aliases, override default composer... ;)
@TheCodeholic
@TheCodeholic Жыл бұрын
As far as you have access to SSH, every step will be exactly as it is on local environment. To pull the latest changes - "git pull" To run composer commands - "php ~/composer.phar [COMMAND_NAME]" To run artisan commands "php artisan [COMMAND_NAME]" What do you exactly mean in "Adding aliases" or "Override default composer"?
@JACKoPL
@JACKoPL Жыл бұрын
@@TheCodeholic I haven't checked (tested) for a long time, but I think caused a problem with composer.json-lock. Maybe I should give him to .gitignore. I had to delete the vendor catalog and again . Maybe it also depends on the hosting. As for composer, the composer ", not php ~/composer.phar normally writes locally. For me in /home/nick/.bashrc I have a line . And as we talk about the alias, it is the abbreviation . Translated by Uncle G ;)
@TheCodeholic
@TheCodeholic Жыл бұрын
git pull will cause problems if you have composer-lock.json modified locally and that you run git pull which tries to pull also modified composer-lock.json file. On the hosting you won't have this problem because you are not going to modify composer-lock.json file on server. As for the aliases: If you are going to create that in your .bashrc file that should work. But that really depends on OS and some configurations as well.
@lawenforcer-niel
@lawenforcer-niel Жыл бұрын
You make it very complicated for those panel..
@TheCodeholic
@TheCodeholic Жыл бұрын
🚀Get Shared Hosting for only $1.99 for a Limited time: hostinger.com/thecodeholic, and use coupon code "THECODEHOLIC" for EXTRA 10% 🚀
@hoketero
@hoketero 7 ай бұрын
Did anyone else got rickroll'd? >.>
@TheCodeholic
@TheCodeholic 7 ай бұрын
Do you have any issues? Maybe I can help?
@constantine9074
@constantine9074 11 ай бұрын
ისე ვეღარ გავიგე ზურა გქვია თუ გიო.. ვიდეო ძაან კაია
@TheCodeholic
@TheCodeholic 11 ай бұрын
ზურა მქვია. გიო რატო გეგონა?
@constantine9074
@constantine9074 11 ай бұрын
@@TheCodeholic მეორე არხიც ხო გაქ program with gio..
@TheCodeholic
@TheCodeholic 11 ай бұрын
ეგ არაა ჩემი არხი
React + Laravel Full-stack Application | Build and Deploy
3:13:19
The Codeholic
Рет қаралды 344 М.
Deploy Laravel applications fast and cheap
8:54
Andrew Schmelyun
Рет қаралды 23 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 15 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 10 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Deploying Laravel Project on Shared Hosting | Laravel RESTful API
18:13
Simplified Coding
Рет қаралды 20 М.
Why is Laravel NOT used in Big Development Projects?
11:53
Stefan Mischook
Рет қаралды 174 М.
Deploy Laravel Applications to Hostinger Cloud Hosting
20:36
Code With Dary
Рет қаралды 19 М.
Deploy Laravel To Shared Hosting The Easy Way
13:41
Traversy Media
Рет қаралды 442 М.
How YOU Deploy Laravel Projects? Survey Results.
13:38
Laravel Daily
Рет қаралды 30 М.
5 Laravel Livewire Projects For Beginners
1:13:25
The Codeholic
Рет қаралды 53 М.
#9 - Dax Raad: Local-First SaaS
1:02:55
Local First Podcast
Рет қаралды 6 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 15 МЛН