Every time after starting a new fresh install of Drupal in my Linux box I always have to set some permissions to the hierarchy structure to make it work properly.
As I always need to hunt the commands over again, I’ve decided to put everything in one place so I can easily remember.
Latest version of the code can be checked in my Gist.