WordPress: files permissions
source: https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress#23755604
Ownership and Permissions
Let webserver be owner
chown www-data:www-data -R *
Directory permissions rwxr-xr-x
find . -type d -exec chmod 755 {} \;
File permissions rw-r–r–
find . -type f -exec chmod 644 {} \;