What permissions for Yii?


trying to setup a *nix server with Yii I’ve had some permission issues because Yii have to write data on the file-system (I receive errors from Yii because it can’t write something).

What are the exact Yii files and folders which need write permissions in order to work properly?

Thank you.

Only the folders assets and protected/runtime require write access. When you upload an application make sure either to clear these folders before or make all files in it writeable by the webserver process.

Also, if you use a SQLite database (and perform INSERT, UPDATE or DELETE queries on it), the webserver user needs write access to your database file.