我正在使用Jelix PHP5 框架,当我尝试安装应用程序时遇到此错误:
php lib/jelix-scripts/jelix -portail installapp
Error: bad path in JELIX_APP_TEMP_PATH, it is equals to '/' !!
Jelix cannot clear the content of the temp directory.
Correct the path in JELIX_APP_TEMP_PATH or create the directory you
indicated into JELIX_APP_TEMP_PATH.
我的 porttail/application.init.php 文件包含:
<?php
/**
* @licence http://www.gnu.org/licenses/gpl.html GNU General Public Licence, see LICENCE file
*/
require(dirname(__FILE__).'/../lib/jelix/init.php');
define ('JELIX_APP_PATH', dirname (__FILE__).'/'); // don't change
define ('JELIX_APP_TEMP_PATH', realpath(JELIX_APP_PATH.'../temp/portail/').'/');
define ('JELIX_APP_VAR_PATH', JELIX_APP_PATH.'var/');
define ('JELIX_APP_LOG_PATH', JELIX_APP_PATH.'var/log/');
define ('JELIX_APP_CONFIG_PATH', JELIX_APP_PATH.'var/config/');
define ('JELIX_APP_WWW_PATH', realpath(JELIX_APP_PATH.'../www/').'/');
define ('JELIX_APP_CMD_PATH', JELIX_APP_PATH.'scripts/');
我的 porttail/application-cli.init.php 文件包含:
<?php
/**
* @licence http://www.gnu.org/licenses/gpl.html GNU General Public Licence, see LICENCE file
*/
require(dirname(__FILE__).'/../lib/jelix/init.php');
define ('JELIX_APP_PATH', dirname (__FILE__).'/'); // don't change
define ('JELIX_APP_TEMP_PATH', realpath(JELIX_APP_PATH.'../temp/portail-cli/').'/');
define ('JELIX_APP_VAR_PATH', JELIX_APP_PATH.'var/');
define ('JELIX_APP_LOG_PATH', JELIX_APP_PATH.'var/log/');
define ('JELIX_APP_CONFIG_PATH', JELIX_APP_PATH.'var/config/');
define ('JELIX_APP_WWW_PATH', realpath(JELIX_APP_PATH.'../www/').'/');
define ('JELIX_APP_CMD_PATH', JELIX_APP_PATH.'scripts/');
你知道出了什么问题吗?
编辑:如果有人可以添加“jelix”作为标签;谢谢,因为在达到声誉水平之前我不能这样做:)