I have a YII webapp project which I have got using svn checkout repo. When I try to run this webapp on my NGINX server, it (project1) gives me an error –
Application runtime path "~/workspace/project1/protected/runtime" is not valid. Please make sure it is a directory writable by the Web server process.
But when I create some other YII project (project2) like –
yiic webapp ~/workspace/project2
#and then the MVC procedure
./protected/yiic shell
>>model User users
>>crud User
I can run my webapp in my browser.
Is it because the project1 is not configured? What do I have to do the configuration manually to my working copy?
You have to give write access to the runtime folder, for the nginx user.
Yii uses this folder for storing temporary files during runtime, from the guide:
So, yii does this check, in CApplication’s
setRuntimePath():