DEV Community

Discussion on: Laravel 5.6 on Digital Ocean

Collapse
 
defman profile image
Sergey Kislyakov

You should not chmod 777'ing the .env file. Giving write permissions to anyone is a security issue.

Collapse
 
alchermd profile image
John Alcher

Thanks for the reply! What would be the correct approach then?

Collapse
 
defman profile image
Sergey Kislyakov

I'd go with chmod 644 and chown $USER to fix the permissions issue.