:::: MENU ::::

filesystem permissions for document root

In order to protect your website the best permissions for a site will be 0644 for files which gives the owner read and write access, but everybody else is only able to read.

Directories should be set 711. If you want to allow directory listing use 755 for directories.


find /var/www/your/document/root \( -type f -execdir chmod 644 {} \; \) -o \( -type d -execdir chmod 711 {} \; \)