Set File Permissions

File Permissions

Most php servers require that files be ‘-rw-r–r–‘ and directories ‘rwxr-xr-x' running the example in the directory you want will change all these recursively for you.

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;