You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-10-06 14:29:33

craigomez
Member
Registered: 2018-06-10
Posts: 4

GLPI 9.2.1 Installation with config files and separate files!!

Hello,

I just want to point out a problem with the installation wizard of version 9.2.1 during an installation with the folders 'files' and 'config' separated from the folder GLPI as recommended via the documentation.

Indeed I modified the file inc / based_config.php so that everything is good:

Original file:

from line 49

// If this file exists, it is load
if (file_exists(GLPI_ROOT. '/config/local_define.php')) {
   require_once GLPI_ROOT. '/config/local_define.php';
}

// If this file exists, it is load, allow to set configdir/dumpdir elsewhere
if (file_exists(GLPI_ROOT . '/inc/downstream.php')) {
   include_once (GLPI_ROOT . '/inc/downstream.php');
} else if (file_exists(GLPI_ROOT . '/config/config_path.php')) { // For compatibility, deprecated
   include_once (GLPI_ROOT . '/config/config_path.php');
}

// Default location for database configuration : config_db.php
if (!defined("GLPI_CONFIG_DIR")) {
   define("GLPI_CONFIG_DIR", GLPI_ROOT . "/config");
}
Modified file:

// If this file exists, it is load, allow to set configdir/dumpdir elsewhere
if (file_exists(GLPI_ROOT . '/inc/downstream.php')) {
   include_once (GLPI_ROOT . '/inc/downstream.php');
} else if (file_exists(GLPI_ROOT . '/config/config_path.php')) { // For compatibility, deprecated
   include_once (GLPI_ROOT . '/config/config_path.php');
}

// If this file exists, it is load
// if (file_exists(GLPI_ROOT. '/config/local_define.php')) {
// require_once GLPI_ROOT. '/config/local_define.php';
// }

if (file_exists(GLPI_CONFIG_DIR . '/local_define.php')) {         
   require_once GLPI_CONFIG_DIR . '/local_define.php';         
}
So I reversed the loading order of the environment variables then local_define.php is loaded from the config folder itself loaded via inc / downstream.php
It seems that the 'config' folder is mandatory without this modification, and then moving the config file goes inc / downstream.php seems to me at this time the option that is useless ... unless you have not grasped everything, possible thingwink

Offline

#2 2018-10-07 21:32:09

craigomez
Member
Registered: 2018-06-10
Posts: 4

Re: GLPI 9.2.1 Installation with config files and separate files!!

craigomez wrote:

Hello,

I just want to point out a problem with the installation wizard of version 9.2.1 during an installation with the folders 'files' and 'config' separated from the folder GLPI as recommended via the documentation.

Indeed I modified the file inc / based_config.php so that everything is good:

Original file:

from line 49

// If this file exists, it is load
if (file_exists(GLPI_ROOT. '/config/local_define.php')) {
   require_once GLPI_ROOT. '/config/local_define.php';
}

// If this file exists, it is load, allow to set configdir/dumpdir elsewhere
if (file_exists(GLPI_ROOT . '/inc/downstream.php')) {https://downloader.vip/uptodate/
   include_once (GLPI_ROOT . '/inc/downstream.php');
} else if (file_exists(GLPI_ROOT . '/config/config_path.php')) { // For compatibility, deprecated
   include_once (GLPI_ROOT . '/config/config_path.php');
}

// Default location for database configuration : config_db.php
if (!defined("GLPI_CONFIG_DIR")) {
   define("GLPI_CONFIG_DIR", GLPI_ROOT . "/config");https://downloader.vip/mapquest/
}
Modified file:

// If this file exists, it is load, allow to set configdir/dumpdir elsewhere
if (file_exists(GLPI_ROOT . '/inc/downstream.php')) {
   include_once (GLPI_ROOT . '/inc/downstream.php');
} else if (file_exists(GLPI_ROOT . '/config/config_path.php')) { // For compatibility, deprecated
   include_once (GLPI_ROOT . '/config/config_path.php');
}https://downloader.vip/rufus/

// If this file exists, it is load
// if (file_exists(GLPI_ROOT. '/config/local_define.php')) {
// require_once GLPI_ROOT. '/config/local_define.php';
// }

if (file_exists(GLPI_CONFIG_DIR . '/local_define.php')) {         
   require_once GLPI_CONFIG_DIR . '/local_define.php';         
}
So I reversed the loading order of the environment variables then local_define.php is loaded from the config folder itself loaded via inc / downstream.php
It seems that the 'config' folder is mandatory without this modification, and then moving the config file goes inc / downstream.php seems to me at this time the option that is useless ... unless you have not grasped everything, possible thingwink

any updates guys??

Offline

Board footer

Powered by FluxBB