Project

General

Profile

Feature #6105

Add data_sys, conf_sys, temp_sys and log_sys optional settings in configuration.php

Added by Yannick Warnier about 6 years ago. Updated over 5 years ago.

Status:
Needs more info
Priority:
Normal
Category:
System
Target version:
Start date:
20/04/2013
Due date:
% Done:

50%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

In configuration.php, the $_configuration['course_folder'] setting still indicates 'courses/' (which is fine if the rest is updated).

In order for Chamilo to be 'packageable' (see #5871), we should make it possible for the admin (or the packaging system) to define a 'data_sys' directory which would be used to store the data directory.
If not defined, we should assume it is the 'data/' directory. If defined, we should use this definition (in api_get_path()) to build all the links to courses.

Agree/disagree?

I'm happy to take this in charge. I'm just asking what you think.

Associated revisions

Revision 47d8629d (diff)
Added by Julio Montoya about 6 years ago

Adding new paths see #6105

History

#1

Updated by Julio Montoya over 5 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier
  • % Done changed from 0 to 50

I think this is already resolved.

The "courses" folder was moved inside the "data" folder, then a sysadmin can move it (in theory) in other place.
We added the possibility to do this but the current code will not work if you move "data" somewhere else, basically due the legacy code wich needs revision to allow this feature working at 100%.

The parameters to change are:

The data path:

$_configuration['sys_data_path']

The courses path:

$_configuration['sys_course_path']

See: https://github.com/chamilo/chamilo-lms/blob/master/main/inc/global.inc.php#L78-L84

Also available in: Atom PDF