By default the config.inc.php
file is located in the base directory of OJS 3.1.0: /path/to/ojs/config.inc.php
. I want to place it in a dedicated config
directory, for example: /path/to/ojs/config/config.inc.php
. Is there a standard way to do this?
I can see it’s used in 2 places:
- In
lib/pkp/classes/config/Config.inc.php
:
define('CONFIG_FILE', Core::getBaseDir() . DIRECTORY_SEPARATOR . 'config.inc.php');
.
I could change this line to:
define('CONFIG_FILE', Core::getBaseDir() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.inc.php');
. - In
lib/pkp/templates/install/install.tpl
:
...if is_writeable('config.inc.php')...
.
I can ignore this as I can make the change post install.
Unless there is a standard way to do this, will 1 suffice? Is it fairly future-proof?