config_local and multisite

Having trouble installing serendipity?
Post Reply
jmroth
Regular
Posts: 8
Joined: Sat Feb 13, 2010 1:02 am
Location: Luxembourg

config_local and multisite

Post by jmroth »

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
  • have ONE install with config_local with the installation files, or
  • have MULTIPLE installs with config_local in the (copies of the) deployment directory.
Now I wonder what is the catch here since I currently seem to have it working with both.
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';
}
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
Post Reply