我正在使用Jelix PHP5 Framework,当我尝试安装应用程序时遇到此错误:
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.
我的portail / 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/');
我的portail / 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”作为标签;谢谢,因为在达到声望级别之前我无法做到这一点:)
答案 0 :(得分:1)
所以经过很长一段时间我已经完成了如何解决它。
在pir temp中有目录
但是当我们使用jelix脚本来管理我们必须创建的安装时
然后安装完成没有任何错误
~/:$ php lib/jelix-scripts/jelix --portail installapp
~/:$
跳这可以帮助下一个;)