Common Laravel Installation Issues (500 Server Error)
HTML-код
- Опубликовано: 20 июл 2024
- How to debug a Laravel application that won't load or shows a 500 server error. Covers five common system-level issue / bugs including: Missing .env file, blank APP_KEY, error in .env file, permission issues, and a missing Composer vendor directory.
=== NOTES ===
codewithsusan.com/notes/commo...
=== CHAPTERS ===
00:00 Introduction
01:16 Issue 1 - Missing .env file
04:21 Issue 2 - APP_KEY blank
06:16 Issue 3 - Error in .env file
07:54 Issue 4 - Permission issues
12:15 Issue 5 - Missing Composer vendor directory
=== PRODUCTS I USE ===
Microphone: amzn.to/3ZRPdvb
Microphone windscreen: amzn.to/3ZRPdvb
(paid links)
this video actually helped me to fix a project. Hope to see more great works from you
This was super great, thank you Susan!
thank u so much first for englobing many possible common issues and second for actually helping me to fix my own issue
Glad it helped sort out your issue 👍
Another really helpful and well made guide that saved me a lot of time..
Finally Found some amazing content here
Awesome tuts
A very simple oversight is the last step of setting up your server name on /etc/hosts
thank you Susan!
Thanks ! It was very helpful
Glad it helped!
I am happy with the help, but the voice narrating, melt me!!
Great!
great help
good one
i need help
Thanx
I’ve upload my laravel to a free hosting website and I’ve done most the required steps but it is still showing that 500 Error! I thought maybe I need to change the php version I tried but it still didn’t work, any tips please 🙏
What happens when you run the command `php artisan` within your application directory on the server? Does it output a list of artisan commands or does it return any sort of error?
Hi, We created a livewire view form for a customer and have a multistep. After fillup the all textarea field, and clicking the submit button, we get the message " This page has expired. Would you like to refresh the page?" If we click the OK button, the view form is refreshed and loses all textarea field data. Have you any idea, how to prevent data?
Does the form include a CSRF field? laravel.com/docs/10.x/csrf
@@codewithsusan Yes
helpful
all right
very good
Thanks!
nice
greate
good
great
Subscribed
php artisan works perfect and I don`t see any warning in PHP or server logs, what else could be? .htaccess?
I can browse laravel project files but when click on public folder it shows error 500
Sounds like your site/domain isn't configured correctly. When you visit the URL in the browser, you should not see the project files, it should just load your application.
I have a guide on deploying Laravel on Apache at codewithsusan.com/notes/deploy-laravel-on-apache. (I'm assuming you're using Apache based on your reference to .htaccess; if you're using Nginx instead here's a guide on that codewithsusan.com/notes/deploy-laravel-on-nginx).
Pay close attention to the section under "Configure site" (codewithsusan.com/notes/deploy-laravel-on-apache#configure-site) because based on the info you've provided I believe that's where your issue might be.
Help?
Hi just to point out that deleteing env file causes application level error.
Not System level error
Please correct me if im wrong
Specifically it causes a 500 server error. In this context, the "system" I am referring to is the server.
@@codewithsusanthanks
Hi, anyone pls help me
Hi miss, also can explain on file_put_contents(/var/www/photons/storage/framework/cache/data/29/c3/29c30ce737f98802e1537f43c764b5122c6cfda6): Failed to open stream: No such file or directory
What cause this error?
Any chance you cache directory was deleted? If so, you can create it with this command: "mkdir -p /var/www/photons/storage/framework/cache/data/"
Once created, set the appropriate permissions as described here:
codewithsusan.com/notes/common-laravel-installation-issues#issue-4-incorrect-permissions
nice
good