shakyShane / laravel-docker

repo for upcoming blog post
123 stars 52 forks source link

Server returns code 500 #1

Open santigraviano opened 7 years ago

santigraviano commented 7 years ago

Hi there! I have cloned the repo, and ran it, when I try to enter http://localhost:8080, I get an error code 500, server internal error.

Can anyone give me some clue?

AlejandroSilva commented 7 years ago

I got the same issue: "Whoops, looks like something went wrong."

deevus commented 7 years ago

If you are still stuck, I have been using https://github.com/hitalos/laravel without issue for months.

jacksnodgrass commented 7 years ago

The ./storage and ./bootstrap/cache dirs need to be owned by the www-data ( uid/gid = 33 ) user. Or you can just chmod 777 -R ./storage and ./bootstap/cache. As-Is those dirs aren't writable by the www-data users that runs and you get the 500 error.

Kamadake commented 7 years ago

@jacksnodgrass is right. had the 500 issue myself and then I found the following answered question that solves the issue: https://laracasts.com/discuss/channels/general-discussion/laravel-framework-file-permission-security

It might be good to mention it in the article probably