Home πŸ‡ΊπŸ‡¦ Support Ukraine

Webserver Cheatsheet

Created: 2020-07-01

Reading time: 1 min


Lumen

dev permissions:

chown -R user:http .
find . -type d -exec chmod 750 {} \;
find . -type f -exec chmod 640 {} \;
find ./storage -type d -exec chmod 2770 {} \;
find ./storage -type f -exec chmod 660 {} \;

prod permissions:

chown -R http:http .
find . -type d -exec chmod 500 {} \;
find . -type f -exec chmod 400 {} \;
find ./storage -type d -exec chmod 700 {} \;
find ./storage -type f -exec chmod 600 {} \;