CException

Application runtime path "/var/www/web/digitalshool/protected/runtime" is not valid. Please make sure it is a directory writable by the Web server process.

/var/www/web/digitalshool/protected/framework/base/CApplication.php(289)

277             return $this->_runtimePath;
278         }
279     }
280 
281     /**
282      * Sets the directory that stores runtime files.
283      * @param string $path the directory that stores runtime files.
284      * @throws CException if the directory does not exist or is not writable
285      */
286     public function setRuntimePath($path)
287     {
288         if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath))
289             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.',
290                 array('{path}'=>$path)));
291         $this->_runtimePath=$runtimePath;
292     }
293 
294     /**
295      * Returns the root directory that holds all third-party extensions.
296      * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'.
297      */
298     public function getExtensionPath()
299     {
300         return Yii::getPathOfAlias('ext');
301     }

Stack Trace

#8
+
 /var/www/web/digitalshool/index.php(17): YiiBase::createWebApplication("/var/www/web/digitalshool/protected/config/main.php")
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14 require_once(dirname(__FILE__).'/protected/config/common_functions.php'); // 公共配置文件
15 require_once($yii);
16 
17 Yii::createWebApplication($config)->run();
2024-03-29 22:26:43 Apache/2.4.43 (Unix) PHP/7.4.7 Yii Framework/1.1.14