runtime is not valid

YII框架:新搭建的项目框架在报错。

错误:

[error] [exception.CException] CException: Application runtime path "/usr/xxx/xxx/protected/runtime" is not valid. Please make sure it is a directory writable by the Web server process.

原因:

runtime目录没有写的权限。

解决办法:

chmod -R 777 runtime





猜你喜欢

转载自blog.csdn.net/JonSnowY/article/details/79708536