Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

j00rd's avatar
Level 2

500 Internal Error when Deploying

Hi guys I am trying to deploy my first ever site, I thought it would be as easy as link the repository and all would be fine since it works locally however I guess that's never the case!

I'm using Laravel Forge with AWS Servers, the layout of the website is there I just get an internal server error with the data. I followed the Gaming Aggregator series and it all works locally. - https://github.com/JordHemsworth/GameAPI -

However when putting it to the server I get these errors in the console browser - Failed to load resource: the server responded with a status of 500 (Internal Server Error) /livewire/message/recently-reviewed:1

Failed to load resource: the server responded with a status of 500 (Internal Server Error) /livewire/message/popular-games:1

Failed to load resource: the server responded with a status of 500 (Internal Server Error) /livewire/message/most-anticipated:1

Failed to load resource: the server responded with a status of 500 (Internal Server Error) /livewire/message/coming-soon:1

DevTools failed to load source map: Could not load content for http://35.173.49.241/js/shifty.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

In the laravel log this is the most recent error - 2022-01-20 12:41:44] local.ERROR: View [app] not found. {"exception":"[object] (InvalidArgumentException(code: 0): View [app] not found. at C:\Users\Jord\Coding\GameAPI\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php:137) [stacktrace]

  • But I'm not really sure what it is saying when it all works locally.

Any ideas?

0 likes
3 replies
sevenTopo's avatar

try to enable the debug in your .env (set to true) file it will give you more details about the error and check if you generate a key via php artisan key:generate

j00rd's avatar
Level 2

@sevenTopo

I had it set to true anyway, would the details display in the laravel log?

I've just generated a key, I hadn't done that before would I need to do that for all sites? Sorry it's my first time deploying a site

1 like
sevenTopo's avatar

@j00rd no you only need to do it one only time . throught ssh cmd . if you set debu to true it will display the full error trace and message , not 500 page error .

Please or to participate in this conversation.