Loading...
 
Skip to main content

Architecture / Installation


You are viewing a reply to Windows Path Error

Re: Windows Path Error

ok, I found the issue..

In tiki-setup.php it has

if (strpos($_SERVER%22SERVER_SOFTWARE%22,"IIS")==TRUE){

if (array_key_exists('PATH_TRANSLATED', $_SERVER)) {
$docroot = dirname($_SERVER'PATH_TRANSLATED');
print $_SERVER'PATH_TRANSLATED';
print dirname($_SERVER'PATH_TRANSLATED');
} else {
$docroot = getcwd();
}
}
else{
$docroot = getcwd();

}


The PHP dirname function is stripping off the install directory from the path. I tried moving my install to 'c:\wiki\' and dirname strips it down to 'c:\'.

I just modified the if statement to be...

$docroot = getcwd();