added basic installation script to setup directory permissions

very basic implementation for https://github.com/yiisoft/yii2/issues/325