Yii Framework Forum: Der Laufzeit-Pfad "/var/www/blog2/protected/runtime" der Applikation ist ungültig - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Der Laufzeit-Pfad "/var/www/blog2/protected/runtime" der Applikation ist ungültig Rate Topic: -----

#1 User is offline   yii 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 440
  • Joined: 25-July 09

Posted 26 October 2009 - 07:12 PM

Für alle die folgende Fehlermeldung bekommen.
Setzt die Rechte für den Ordner runtime auf 777. Warum ka.

/var/www/blog2/protected/runtime


Array
(
    [code] => 500
    [type] => CException
    [message] => Der Laufzeit-Pfad "/var/www/blog2/protected/runtime" der Applikation ist ungültig. Bitte stellen Sie sicher, dass der Webserver-Prozess Schreibrechte dafür besitzt.
    [file] => /var/www/yii/framework/base/CApplication.php
    [line] => 236
    [trace] => #0 /var/www/yii/framework/base/CApplication.php(224): CApplication->setRuntimePath('/var/www/blog2...')
#1 /var/www/yii/framework/logging/CFileLogRoute.php(55): CApplication->getRuntimePath()
#2 /var/www/yii/framework/logging/CLogRouter.php(65): CFileLogRoute->init()
#3 /var/www/yii/framework/base/CModule.php(353): CLogRouter->init()
#4 /var/www/yii/framework/base/CModule.php(441): CModule->getComponent('log')
#5 /var/www/yii/framework/base/CApplication.php(119): CModule->preloadComponents()
#6 /var/www/yii/framework/YiiBase.php(108): CApplication->__construct('/var/www/blog2...')
#7 /var/www/yii/framework/YiiBase.php(81): YiiBase::createApplication('CWebApplication', '/var/www/blog2...')
#8 /var/www/blog2/index.php(11): YiiBase::createWebApplication('/var/www/blog2...')
#9 {main}
    [source] => Array
        (
            [224] => 			$this->setRuntimePath($this->getBasePath().DIRECTORY_SEPARATOR.'runtime');

            [225] => 			return $this->_runtimePath;

            [226] => 		}

            [227] => 	}

            [228] => 

            [229] => 	/**

            [230] => 	 * @param string the directory that stores runtime files.

            [231] => 	 * @throws CException if the directory does not exist or is not writable

            [232] => 	 */

            [233] => 	public function setRuntimePath($path)

            [234] => 	{

            [235] => 		if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath))

            [236] => 			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.',

            [237] => 				array('{path}'=>$path)));

            [238] => 		$this->_runtimePath=$runtimePath;

            [239] => 	}

            [240] => 

            [241] => 	/**

            [242] => 	 * Returns the root directory that holds all third-party extensions.

            [243] => 	 * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'.

            [244] => 	 */

            [245] => 	public function getExtensionPath()

            [246] => 	{

            [247] => 		return Yii::getPathOfAlias('ext');

            [248] => 	}

        )

)

Meine Fragen stelle ich öffentlich und baue somit eine Wissensdatenbank für andere auf!
0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 27 October 2009 - 04:09 AM

Quote

runtime/ enthält temporär erzeugte Dateien


Neben /assets braucht der Webserverprozess auch für diesen Ordner Schreibrechte.

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users