Application runtime path "/opt/lampp/htdocs/yii/test/protected/runtime" is not valid.

/*******************
Title:Application runtime path "/opt/lampp/htdocs/yii/test/protected/runtime" is not valid.
Author:insun
Blog:http://yxmhero1989.blog.163.com
****************/
    
CException
Application runtime path "/opt/lampp/htdocs/yii/test/protected/runtime" is not valid. Please 

make sure it is a directory writable by the Web server process. 
Application runtime path "/opt/lampp/htdocs/yii/test/protected/runtime" is not valid._第1张图片
 
CException

CAssetManager.basePath "/opt/lampp/htdocs/yii/test/assets" is invalid. Please make sure the 

directory exists and is writable by the Web server process. 


原因:把windows版的Yii框架写的程序中的拷到Linux去,assets和runtime目录对Group和其他的权限不够。
解决方案:点击这2个文件的属性,属性框全选好了,权限777了。


Application runtime path "/opt/lampp/htdocs/yii/test/protected/runtime" is not valid._第2张图片
http://www.yiiframework.com/forum/index.php?/topic/8640-application-runtime-path-is-not-valid/
也有同学的解决方案,一样一样O(∩_∩)O哈哈~

你可能感兴趣的:(Application runtime path "/opt/lampp/htdocs/yii/test/protected/runtime" is not valid.)