Directory not writable [Solved]

I am having trouble setting up a Yii app on a shared server. I have developed it on localhost and also had it operational on managed hosting. I am now trying to move it to a shared server by uploading all files via ftp, but get the following error:

Invalid Configuration – yii\base\InvalidConfigException

The directory is not writable by the Web process: /var/www/vhosts/

I set the permissions for both assets and runtime folders to 0755.

Any thoughts about what could be causing this error?

I guess your webserver user isn’t in the group that owns the file. Therefore second 5 isn’t enough.

chmod -R 777 from this thread worked. For some reason, setting the permissions in FileZilla did not have the same effect. It’s a newbie thing :)