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)

Комментарии • 42

  • @ashrafulislam7065
    @ashrafulislam7065 Год назад +1

    this video actually helped me to fix a project. Hope to see more great works from you

  • @christinenyathirakanga3464
    @christinenyathirakanga3464 Год назад

    This was super great, thank you Susan!

  • @redatlb9280
    @redatlb9280 8 месяцев назад

    thank u so much first for englobing many possible common issues and second for actually helping me to fix my own issue

    • @codewithsusan
      @codewithsusan  8 месяцев назад

      Glad it helped sort out your issue 👍

  • @sydvic7584
    @sydvic7584 Год назад

    Another really helpful and well made guide that saved me a lot of time..

  • @hask1804
    @hask1804 Год назад

    Finally Found some amazing content here

  • @eazzyfitness
    @eazzyfitness 8 месяцев назад +1

    Awesome tuts

  • @ThislsYusuf
    @ThislsYusuf Год назад

    A very simple oversight is the last step of setting up your server name on /etc/hosts

  • @minggg9545
    @minggg9545 4 месяца назад

    thank you Susan!

  • @Gamers-geek
    @Gamers-geek 8 месяцев назад +1

    Thanks ! It was very helpful

  • @melenyoni4938
    @melenyoni4938 11 месяцев назад

    I am happy with the help, but the voice narrating, melt me!!

  • @md.jamiluddin3295
    @md.jamiluddin3295 Год назад +1

    Great!

  • @georgebwire7082
    @georgebwire7082 Год назад

    great help

  • @vishalnag9452
    @vishalnag9452 Год назад +1

    good one

  • @djdcozy
    @djdcozy Год назад

    i need help

  • @PiotrMajdykowski
    @PiotrMajdykowski Год назад

    Thanx

  • @Deo-316
    @Deo-316 Год назад

    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 🙏

    • @SusanBuckOnline
      @SusanBuckOnline Год назад

      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?

  • @md.jamiluddin3295
    @md.jamiluddin3295 Год назад

    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?

  • @user-rd4yh3yb8b
    @user-rd4yh3yb8b 9 месяцев назад

    helpful

  • @user-ou8rm7yb7x
    @user-ou8rm7yb7x Год назад

    all right

  • @hamzase__8215
    @hamzase__8215 Год назад +1

    very good

  • @MhadiAhmed
    @MhadiAhmed Год назад

    nice

  • @avsoulmovies2412
    @avsoulmovies2412 Год назад +1

    greate

  • @hamzajayari7158
    @hamzajayari7158 Год назад +1

    good

  • @user-wl2nx2co7e
    @user-wl2nx2co7e 9 месяцев назад

    great

  • @haythamaldamen3578
    @haythamaldamen3578 10 месяцев назад

    Subscribed

  • @AhmadHelali
    @AhmadHelali Год назад

    php artisan works perfect and I don`t see any warning in PHP or server logs, what else could be? .htaccess?

    • @AhmadHelali
      @AhmadHelali Год назад

      I can browse laravel project files but when click on public folder it shows error 500

    • @codewithsusan
      @codewithsusan  Год назад

      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.

  • @AhmadHelali
    @AhmadHelali Год назад

    Help?

  • @user-ju6nl2tm8l
    @user-ju6nl2tm8l 3 месяца назад

    Hi just to point out that deleteing env file causes application level error.
    Not System level error
    Please correct me if im wrong

    • @codewithsusan
      @codewithsusan  3 месяца назад

      Specifically it causes a 500 server error. In this context, the "system" I am referring to is the server.

    • @user-ju6nl2tm8l
      @user-ju6nl2tm8l 3 месяца назад

      @@codewithsusanthanks

  • @user-ju6nl2tm8l
    @user-ju6nl2tm8l 3 месяца назад

    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?

    • @codewithsusan
      @codewithsusan  3 месяца назад

      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

  • @adeotiazeez4231
    @adeotiazeez4231 Год назад

    nice

  • @nitalaurensia3135
    @nitalaurensia3135 Год назад

    good