yii – phpfog应用程序运行时路径无效

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了yii – phpfog应用程序运行时路径无效脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试在PHPfog上实现yii框架附带的一个小的认应用程序.
我已根据GIT的说明安装了它.现在,当我尝试运行它时,我收到此错误(如下).
我已经检查过以确保该目录是可写的,并且所调用的目录确实存在.我被困了,接下来我该怎么办?

Application runtime path      /VAR/fog/apps/apP35423/austintxous.PHPfogapp.COM/demos/emp/PRotected/runtime" is not valid.     
Please make sure it is a directory writable by the Web server process.
259             return $this->_runtimePath;
260         }
261     }
262 
263     /**
264      * Sets the directory that Stores runtime files.
265      * @param string $path the directory that stores runtime files.
266      * @throws CException if the directory does not exist or is not writable
267      */
268     public function setRuntimePath($path)
269     {
270         if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) ||     
!is_writable($runtimePath))
271             throw new CException(Yii::t('yii','Application runtime path "{path}" is 
not valid. Please make sure it is a directory writable by the Web server process.',272                 array('{path}'=>$path)));
273         $this->_runtimePath=$runtimePath;
274     }
275 
276     /**

277      * Returns the root directory that holds all third-party extensions.
278      * @return string the directory that contains all extensions. defaults to the  
'extensions' directory under 'protected'.
279      */
280     public function getExtensionPath()
281     {
282         return Yii::getPathOfAlias('ext');
283     }

解决方法

Web服务器无法写入运行时目录.确保它存在,并将其所有权更改为您的Web服务器,或设置chmod 777(如果它是您的开发环境,这是一个很好的解决方案).

cd [project directory]
chmod 777 protected/runtime

脚本宝典总结

以上是脚本宝典为你收集整理的yii – phpfog应用程序运行时路径无效全部内容,希望文章能够帮你解决yii – phpfog应用程序运行时路径无效所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。