config_local and multisite
Posted: Mon May 03, 2010 1:53 pm
Hi there, I would like to continue what I started here (https://sourceforge.net/tracker/?func=d ... p_id=75065)
So you said one can either
Were you talking about serendipity_config.inc.php?:
From what I see there, as long as I don't set the full webspace/virtualhost (document root) to the directory in /usr/share, but rather include s9y via Aliases I have nothing to worry about.
Thanks
JM
So you said one can either
- have ONE install with config_local with the installation files, or
- have MULTIPLE installs with config_local in the (copies of the) deployment directory.
Were you talking about serendipity_config.inc.php?:
Code: Select all
if (@file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php')) {
$local_config = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php';
} elseif (defined('S9Y_DATA_PATH')) {
// Shared installation!
$local_config = S9Y_DATA_PATH . '/serendipity_config_local.inc.php';
} elseif (@file_exists($serendipity['serendipityPath'] . '/serendipity_config_local.inc.php')) {
$local_config = $serendipity['serendipityPath'] . '/serendipity_config_local.inc.php';
} else {
// Installation fallback
$local_config = S9Y_INCLUDE_PATH . '/serendipity_config_local.inc.php';
}
Thanks
JM