tag: permissions

Webserver File Permissions

6 Aug, 2012 - 1 minutes
I often forget what the best permission masks are for web data. From what I have found out, the standard permissions should go along the lines of Directories 755 PHP 600 Everything Else 644 Also make sure that all files and folder are owned by the correct users/group. find . -exec chown www-data:www-data {} \; find . -type d -exec chmod 755 {} \; find .