Ok this is driving me nuts and I’m down to the wire can’t figure it out, so maybe someone around here has a clue that I’m missing haha.
Ok so here’s the error:
[b]CException[/b]
[b]Description[/b]
Application runtime path "/var/www/vhosts/albern.to/subdomains/yii/httpdocs/albern/protected/config/runtime" is not valid. Please make sure it is a directory writable by the Web server process.
[b]Source File[/b]
/var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/base/CApplication.php(236)
00224: $this->setRuntimePath($this->getBasePath().DIRECTORY_SEPARATOR.'runtime');
00225: return $this->_runtimePath;
00226: }
00227: }
00228:
00229: /**
00230: * @param string the directory that stores runtime files.
00231: * @throws CException if the directory does not exist or is not writable
00232: */
00233: public function setRuntimePath($path)
00234: {
00235: if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath))
00236: 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.',
00237: array('{path}'=>$path)));
00238: $this->_runtimePath=$runtimePath;
00239: }
00240:
00241: /**
00242: * Returns the root directory that holds all third-party extensions.
00243: * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'.
00244: */
00245: public function getExtensionPath()
00246: {
00247: return Yii::getPathOfAlias('ext');
00248: }
[b]Stack Trace[/b]
#0 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/base/CApplication.php(224): CApplication->setRuntimePath('/var/www/vhosts...')
#1 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/logging/CFileLogRoute.php(55): CApplication->getRuntimePath()
#2 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/logging/CLogRouter.php(65): CFileLogRoute->init()
#3 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/base/CModule.php(357): CLogRouter->init()
#4 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/base/CModule.php(445): CModule->getComponent('log')
#5 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/base/CApplication.php(119): CModule->preloadComponents()
#6 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/YiiBase.php(112): CApplication->__construct('/var/www/vhosts...')
#7 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/yii/framework/YiiBase.php(85): YiiBase::createApplication('CWebApplication', '/var/www/vhosts...')
#8 /var/www/vhosts/albern.to/subdomains/yii/httpdocs/albern/index.php(11): YiiBase::createWebApplication('/var/www/vhosts...')
#9 {main}
Now I’ve installed this exact application on my other server and it ran fine, but then found it’s missing some GD support so it’s no good, not to mention it’s not meant for hosting other sites, just my own.
Here are the requirements that passed on my server:
http://www.sterlings…i/requirements/
And here they are for the server getting this error:
http://albern.to/yii...ments/index.php
The server is running Plesk 8.4
Here’s the real kicker, both the application folder and the yii folder holding the framework have chmod 755, and I’ve tried 777 but no dice, still get this error.
If I chmod protected/runtime, server will hang (if group gets write priviledges)
My web partner and I are trying two final tricks to see if we can get something going but maybe his SELinux server is just locked too tight. Our plans are to revise the extensions and where they are installed, I caught eye of a php4 folder mention in the php.ini and then the other is to give the folder the apache user rights to own the file. Aside from that we’re out of ideas.
Overall this has been a nice welcome back to the community, I can’t wait to be done with school and stuff and get back on projects for this.
Hopefully someone can shed light before I shoot myself in the head! haha