Sysconf.inc File

If the file /conf/sysconf.inc exists this tells us that Sahana is installed, so to reinstall Sahana you need to delete the file /conf/sysconf.inc.

The file /conf/sysconf.inc is generated through the setup process /inst/setup.inc using the /conf/sysconf.inc.tpl as a reference. So if you want to install Sahana manually all you have to do is copy /conf/sysconf.inc.tpl to /conf/sysconf.inc and update the configuration settings as you wish.

Email Extract

Email extract 21 Apr 2006


chamindra wrote:

> For this I am including a new configuration file called /conf/conf-order.inc
>
Ok I have implemented the /conf/conf-order.inc. 

Here is an extract:
######################################################################
#                 Sahana Configuration Priority Setting              #
######################################################################
# Give database priority for a homogenous clustered deployment
# Give files priority for a hetrogenous setup with a shared database

# Which will override the database conf values or the conf files
# To give the database conf priority value = 'database'
# To give conf files priority value = 'files'
$conf['sahana_conf_priority'] = 'database';

Also here is the order of override if database:
1) first load /conf/sysconf.inc
2) then override with all module confs /mod/*/conf.inc
3) then override specifically with /mod/$global['module']/conf.inc 
(this allows you to even override sysconf.inc variables like in TWiki ;-) . 
For example you can use this to change the database connection settings for your module only.
4) then override with 'base' config items from the database
5) then override with $global['module'] items in database

when the sysconf file takes priority the order of execution is then are 
steps above in the following order 4.5.1.2.3

Navigation
QR Code
QR Code dev:sysconf (generated for current page)