CException Application runtime path "/var/www/*******/protected/runtime" is not valid. Please make

问题:将yii部署到自己的服务器后,数据库改了之后,还是有报错

CException

Application runtime path “/var/www/******/protected/runtime” is not valid. Please make sure it is a directory writable by the Web server process.

原因:

错误信息的意思是runtime目录没有写的权限,用命令给runtime目录可写的权限就可以了。

解决方法:

#cd /var/www/******/protected/
#chmod -R 777 runtime

你可能感兴趣的:(服务器,yii)