Well yii does not require 777 permissions for assets and runtime it requires write permissions for assets and runtime dir. As for runtime directory that does not even have to be public, also same for the assets you can build your assets and move to public dir. It is not even yii related in general it depends how you deploy your app it could be a (php, laravel, java, c#) app.
Hello, this is a few days old, but id like to ask you a question:
What does this mean? I have them set to 775. Are you saying I can set them to 770? Or are you saying you can put them somewhere else? We are deploying the whole application to the server using code deploy, is this not the best method?