脚本宝典收集整理的这篇文章主要介绍了yii php框架“应用程序运行时路径无效”异常,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
/VAR/www/htML/yii/framework/yiic webapp demo
当我去本地主机/演示我得到en错误:
Application runtime path "/var/www/html/demo/PRotected/runtime" is not valid. Please make sure IT is a directory writable by the Web server process.
起初我以为这是不可写的,所以我做到了:
chmod 777 /var/www/html/demo/protected/runtime
没有工作,因为我执行的最后一个想法:
chmod 777 -R /var/www/html/demo/
我仍然得到同样的例外.有什么想法可能是错的?
– -编辑 – –
FFS这让我坚强
drwxrwxrwx. 4 apache apache 4096 Jun 5 00:06 commands drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 components drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 config drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 controllers drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 data drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 extensions drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 messages drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 migrations drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 models drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 runtime drwxrwxrwx. 7 apache apache 4096 Jun 5 00:06 tests drwxrwxrwx. 5 apache apache 4096 Jun 5 00:06 views -rwxrwxrwx. 1 apache apache 71 Jun 5 00:02 yiic -rwxrwxrwx. 1 apache apache 380 Jun 5 00:02 yiic.bat -rwxrwxrwx. 1 apache apache 178 Jun 5 00:02 yiic.PHP
请参阅:http://www.crypt.gen.nz/selinux/disable_selinux.html获取良好的概述以及如何将其关闭(再次,细节可能因操作系统/内核版本而异).如果它是一个不可公开访问的测试机器,您可以很安全的关闭它,否则,您应该阅读上面的网站以了解它的作用.大多数Linux程序包管理器可以安装文件,以帮助您管理特定应用程序的策略.在RH / CentOS上,您也可以使用/usr/bin/system-config-securitylevel-tui来打开/关闭它.
以上是脚本宝典为你收集整理的yii php框架“应用程序运行时路径无效”异常全部内容,希望文章能够帮你解决yii php框架“应用程序运行时路径无效”异常所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。