I'm trying to set up Piwigo v2.4.5 on IIS 6.0. I've had success with the single site configuration but I want to have individual sites for my family members. I have configured the server to host the two sites:
jon.wallerfamily.net
jack.wallerfamily.net
I have created the site directories as per the wiki.
If I put the following in my /local/config/config.inc.php the system errors out:
if (preg_match('/^jon/', $_SERVER['HOST_NAME']))
{
$site_dir = './jon/';
}
elseif (preg_match('/^jack/', $_SERVER['HOST_NAME']))
{
$site_dir = './jack/';
}
define('PWG_LOCAL_DIR', $site_dir.'local/');
$conf['upload_dir'] = $site_dir.'upload/');
$conf['data_location'] = $site_dir.'_data/');
When I implement the code the site crashes with an internal 500 error. I've tested the config code piece separate and it is returning good values in the $site_dir.
Any help would be greatly appreciated.
Last edited by Roccanan (2012-12-07 22:58:35)
Offline