CException

when im visiting my webapp in localhost no error occur but when im uploading it to the cloudcontrol this error occured:

CException

Application runtime path "/data/local/depfbckfe5d/current/protected/runtime" is not valid. Please make sure it is a directory writable by the Web server process.

/data/local/depfbckfe5d/current/framework/base/CApplication.php(267)

255 return $this->_runtimePath;

256 }

257 }

258

259 /**

260 * Sets the directory that stores runtime files.

261 * @param string $path the directory that stores runtime files.

262 * @throws CException if the directory does not exist or is not writable

263 */

264 public function setRuntimePath($path)

265 {

266 if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath))

267 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.’,

268 array(’{path}’=>$path)));

269 $this->_runtimePath=$runtimePath;

270 }

271

272 /**

273 * Returns the root directory that holds all third-party extensions.

274 * @return string the directory that contains all extensions. Defaults to the ‘extensions’ directory under ‘protected’.

275 */

276 public function getExtensionPath()

277 {

278 return Yii::getPathOfAlias(‘ext’);

279 }

Stack Trace

#0

/data/local/depfbckfe5d/current/framework/base/CApplication.php(254): CApplication->setRuntimePath("/data/local/depfbckfe5d/current/protected/runtime")

#1

/data/local/depfbckfe5d/current/framework/logging/CFileLogRoute.php(55): CApplication->getRuntimePath()

#2

/data/local/depfbckfe5d/current/framework/logging/CLogRouter.php(65): CFileLogRoute->init()

#3

/data/local/depfbckfe5d/current/framework/base/CModule.php(372): CLogRouter->init()

#4

/data/local/depfbckfe5d/current/framework/base/CModule.php(477): CModule->getComponent("log")

#5

/data/local/depfbckfe5d/current/framework/base/CApplication.php(142): CModule->preloadComponents()

#6

/data/local/depfbckfe5d/current/framework/YiiBase.php(128): CApplication->__construct("/data/local/depfbckfe5d/current/protected/config/main.php")

#7

/data/local/depfbckfe5d/current/framework/YiiBase.php(100): YiiBase::createApplication("CWebApplication", "/data/local/depfbckfe5d/current/protected/config/main.php")

#8

/data/local/depfbckfe5d/current/index.php(13): YiiBase::createWebApplication("/data/local/depfbckfe5d/current/protected/config/main.php")

2011-10-09 16:31:53 Apache Yii Framework/1.1.8

As the error says… check that you have the folder /protected/runtime… and that this folder is writable for the web server process

Please i am experiencing the same error as well. :(

The real daunting task is how to make the protected folders accessible by the web server process because by default,Yiic tool creates protected pages.

looking forward to a positive feedback so as to fix this bug quickly.

running fine on Xampp via localhost so am still developing my website however, hosting it on cloudcontrol is almost impossible.

regards,

Dika.

[color="#006400"]/* moved from bug discussions to installation forum */[/color]