Permissions are super important, somewhat awkward and really easy to forget. I'm always googling them which is why I'm writing this blog post for myself.
When it comes to Wordpress, this is the only rule of thumb you need to remember.
All directories should be
All files should be
640 except wp-config.php.
wp-config.php should be