Correct WordPress File/Folder Permissions
Seems to be right to me, for most of the time anyway:
chown www-data:www-data -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--
Thanks to Manuel: https://stackoverflow.com/a/23755604/12163343