简体   繁体   中英

Laravel random internal server error

I have a laravel application running on hosting and I get random Internal server errors and when I refresh the page everything is fine. Any ideas how can I make this internel server errors dissapear? I am 100% sure they appear randomly because sometimes it loads one page, other times it shows the error and when I see the error and refresh it shows the page correctly. I really need to understand how to fix this. Thanks in advance

This error usually occurs when the page is refreshed fast. Laravel cannot read the config file or delay reading the config file. To solve the problem, it is better to cache the config.

php artisan config:cache

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM