From now on I will now move to nginx to deploy my apps its not difficult compare to apache so much configuration. You have to run this or else your app will not work. Thanks for this tutorial.❤❤❤
Good lesson. I'm having issue making my uploaded files in storage served by nginx. i have followed every step in this video. i use public disk and has ran the "PHP artisan storage:link" command but no luck. what else do I need to do Thanks
I have read and done many tutorials to deploy laravel in an aws instance (lightsail) and none have worked for me. Why is so complicated ? Maybe with docker I can do it. I noob in devOps job.
I follow all steps but, when a try to clone: fatal: could not create work tree dir 'my-repol': Permission denied, I did all steps in your tuto..SSH Keys and Github ... and Permission denied, What do I have to do ?
It sounds like the user you are operating as does not have write access to the www directory. You can try prefixing the clone command with `sudo` so it will execute it with root privileges. Alternatively, you can change the owner of the `www` directory to whatever user you’re operating as. This can be down with the `chown` command following this pattern: `chown username -r www`
Try running the command nginx -T | grep "server_name " to see all the server names your nginx server currently has enabled. Confirm the domain (or subdomain) you're setting up is listed there. If it's not, recheck all the steps outlined in the video. If it is and it's still not working, drop me an email at mail@codewithsusan.com with a copy of your site config and I can take a look.
After following all steps I keep encountring 403 Forbidden issue on nginx. I assume its not laravel issue but more of nginx issue. Can you please advise what i may be doing wrong.
Check the output of running "sudo nginx -t". It will let you know if you have any issues in your site configs. Also, here's a separate guide I have on setting up sites on Nginx specifically that might be helpful: th-cam.com/video/omPd93uLQDc/w-d-xo.html If neither of those things get you on track, drop me an email (mail@codewithsusan.com) and I can help you troubleshoot further.
@@codewithsusan running sudo nginx -t gives following output: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Thanks for the link I will check that if still stuc will email you! Cheers Susan.
I have a guide that's not specific to Laravel but it does show how to set up multiple sites on one Nginx server: th-cam.com/video/omPd93uLQDc/w-d-xo.html
Can recommend ne what is the best solutuon for setting owrmisison for my latavel directory Assuming var/www/test is my laravel oroject stored Currently im doing as owner is root Group owber is www data Is this a good solution. Sometimes i need to run acript in the server. Please guide me on how to setup a proper permissions
The solution you mentioned, with the owner set to root and the group set to www-data (or the user under which your web server runs), is a common and reasonable approach. That being said, it's generally recommended to set the owner to the user account that will be managing the project (e.g., your user account), rather than root. This helps prevent accidental changes or modifications by the root user.
My best guess based on the info you provided is there was an issue during the step of configuring the site with Nginx. Double check the settings you added to the file in /etc/nginx/sites-available/. If you want to email me a copy at mail@codewithsusan.com I can give it a second set of eyes for you.
First time i watched your videos, i successfully deploy my laravel apps. You deserve a subscriber
Thank you. It was very helpful finding a clear way of deploying into nginx
From now on I will now move to nginx to deploy my apps its not difficult compare to apache so much configuration. You have to run this or else your app will not work. Thanks for this tutorial.❤❤❤
thank you, for making this part ♥
you described it as simple as possible keep it up
Good lesson.
I'm having issue making my uploaded files in storage served by nginx. i have followed every step in this video. i use public disk and has ran the "PHP artisan storage:link" command but no luck. what else do I need to do
Thanks
Very nice walk through, Thank you.
Very concise and clear. Thank yoU!
Thank you so much!! THis really helped me deploying my laravel apps on Azure as well
Glad it helped!
well documented instructions, thank you
So easy to follow, thank you!
Fantastic tutorial video, thank you so much, Susan.
You're welcome; thanks for watching Eddie.
how do i make nginx server find my build files in the public/build/assets folder I'm confused
Going to try this out on my next project - thanks!
Thank you, this video is helpful
I have struggled with this but thanks alot you have helped me alot
Very Thanks .it was helpful
Amazing, please cover how to deploy in staging, production and how to setup all this things...
Thank you Susan, it works!
Very helpful video
Thanks for your efforts. It was very helpful.
tnx for your clear and easy explanation
I tried, it didnt worked for me. Need to see the issues list mentioned
good, thanks
this is apt and very clear. Thank you.
I have read and done many tutorials to deploy laravel in an aws instance (lightsail) and none have worked for me. Why is so complicated ? Maybe with docker I can do it. I noob in devOps job.
great video helped me alot with my deploying process
Excellent explanation, please could you make a video deploying to aws ec2 instance for Laravel api app?. Thanks a lot
it so helpful and easy guide
Nice explanation. Thanks.
me encata tus videos
Thanks for this
Really helpful, thank you
Going to try this in my next project
Thanks for this!
Good tutorial!
Thank you. The video was helful
going to try this out Thanks
Thank You!
I follow all steps but, when a try to clone: fatal: could not create work tree dir 'my-repol': Permission denied, I did all steps in your tuto..SSH Keys and Github ... and Permission denied, What do I have to do ?
what kind of permission I have to give to www folder ?? What is the best practice for permission in that folder ?
It sounds like the user you are operating as does not have write access to the www directory.
You can try prefixing the clone command with `sudo` so it will execute it with root privileges.
Alternatively, you can change the owner of the `www` directory to whatever user you’re operating as. This can be down with the `chown` command following this pattern: `chown username -r www`
Thanks a lot Sussan!!!
thank you but i have a an issue my defualt nginx web page still showing not my app
Try running the command nginx -T | grep "server_name " to see all the server names your nginx server currently has enabled. Confirm the domain (or subdomain) you're setting up is listed there. If it's not, recheck all the steps outlined in the video. If it is and it's still not working, drop me an email at mail@codewithsusan.com with a copy of your site config and I can take a look.
Great Video
very useful, thanks
After following all steps I keep encountring 403 Forbidden issue on nginx. I assume its not laravel issue but more of nginx issue. Can you please advise what i may be doing wrong.
Check the output of running "sudo nginx -t". It will let you know if you have any issues in your site configs.
Also, here's a separate guide I have on setting up sites on Nginx specifically that might be helpful: th-cam.com/video/omPd93uLQDc/w-d-xo.html
If neither of those things get you on track, drop me an email (mail@codewithsusan.com) and I can help you troubleshoot further.
@@codewithsusan running sudo nginx -t
gives following output:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Thanks for the link I will check that if still stuc will email you! Cheers Susan.
Super useful thanks :)
Thank youuuu
Very helpful video
Thank you for your share
Thank you!
Thank you so much!!
thanks for your sharing
Great video, can you cover how to host multiple Laravel apps in one nginx server
I have a guide that's not specific to Laravel but it does show how to set up multiple sites on one Nginx server: th-cam.com/video/omPd93uLQDc/w-d-xo.html
going to try this out
very informative.
thx for this tutorial!
informative...
great video
Very good
nice videos
try this for my new project
perfect and simple)
Tres bonne pratique
thanks for the info
thank you!
Thanks.
helpful video
Do you have any video on how to deploy backend e.g. Django and frontend e.g. Vue3 both on nginx?
Not at the moment - I don't work much with Django (nothing against it, just don't use it currently).
Sure thanks...
thank you
Subscribed!
thank you
good one
Thanks
Good video! :D
Thanks! 😁
Thanks!
good job
Thanks Carl!
Helpful
ty
Good video
Good!
Nice
Can recommend ne what is the best solutuon for setting owrmisison for my latavel directory
Assuming var/www/test is my laravel oroject stored
Currently im doing as owner is root
Group owber is www data
Is this a good solution.
Sometimes i need to run acript in the server.
Please guide me on how to setup a proper permissions
The solution you mentioned, with the owner set to root and the group set to www-data (or the user under which your web server runs), is a common and reasonable approach.
That being said, it's generally recommended to set the owner to the user account that will be managing the project (e.g., your user account), rather than root. This helps prevent accidental changes or modifications by the root user.
thanks !
Good
it is showing file not found
My best guess based on the info you provided is there was an issue during the step of configuring the site with Nginx. Double check the settings you added to the file in /etc/nginx/sites-available/. If you want to email me a copy at mail@codewithsusan.com I can give it a second set of eyes for you.
tq
great
Nice Konten
thanks
Or, simply say, ”Subscribed!”
nice video
nice
good
¡Suscrito!
good
Subscribed
nice
cool
graet
done