Loading...
 
Skip to main content

Architecture / Installation


Windows Path Error

I just completed the install w/out error. When I attempt to load the wiki I get the following error

Tikiwiki is not properly set up:

The directory 'C:\InetPub/backups/' does not exist.
The directory 'C:\InetPub/dump/' does not exist.
The directory 'C:\InetPub/img/wiki/' does not exist.
The directory 'C:\InetPub/img/wiki_up/' does not exist.
The directory 'C:\InetPub/modules/cache/' does not exist.
The directory 'C:\InetPub/temp/' does not exist.
The directory 'C:\InetPub/templates_c/' does not exist.


The path is actually 'c:\inetpub\wiki' but it has dropped it from the path. I tried to find where to hardset the base directory in the code and didn't have much luck.

thanks

Have you tried other Web applications with the same server setup, and if so do they work normally? I run Tiki on a few Windows PCs for testing and haven't had path problems, but I'm using Apache (Reactor Server WAMP package). As far as I know, Tiki gets the base directory info from the server — at least in the case of Apache it's an Apache environment variable — and Tiki's paths reflect that info. Is it possible to test another Web script from a subdirectory of your Web root and see if it works or not?

-- Gary

> Have you tried other Web applications with the same server setup, and if so do they work normally? I run Tiki on a few Windows PCs for testing and haven't had path problems, but I'm using Apache (Reactor Server WAMP package). As far as I know, Tiki gets the base directory info from the server — at least in the case of Apache it's an Apache environment variable — and Tiki's paths reflect that info. Is it possible to test another Web script from a subdirectory of your Web root and see if it works or not?
>
> — Gary

I'm running on a Win2k3 server w/IIS6

thanks


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();
This proved to be a problem for me too in a fresh install on 2.0 on a hosted IIS implementation. The suggested workaround worked for me however the code was actually in lib/setup/tikisetup.class.php. I will log it as a bug

hi, stugs,

What code did you modified acturely ? I can't understand your comment about "I just modified the if statement to be...", can you make it clear what code should be changed to what ?

Thanks.


baijianpeng,

not sure if you are still trying to fix this, but i managed to get the install working on win 2k8 and iis 7. you need to replace the code referenced above in the lib/setup/tikisetup.class.php file to:

if (strpos($_SERVER'SERVER_SOFTWARE','IIS')==TRUE){
if (array_key_exists('PATH_TRANSLATED', $_SERVER)) {
$docroot = getcwd();
}
}
else{
$docroot = getcwd();
}


Good luck!


Hi everybody,

this is my first post here. 😉

So let's begin with my problem...

I think I've the same windows path problem. I try to install TikiWiki on Windows Server 2003 with IIS 6.0, PHP 5.2 and MySQL 5.0.
When I use the TW 2.0 tiki-install.php I get a
"The directory 'c:\inetpub\wwwroot/templates_c/' does not exist."
and it doesn't matter if I change the code in the lib/setup/lib/tikisetup.class.php or not. 😑

I even tried TikiWiki 3.0 and here I get just a blank page, but I think it refers to the same error.

Maybe the install.php gets confused with the windows directory naming? Especially the c:\inetpub\wwwroot\.. instead of something like /htdocs/tikiwiki/...
And even \wwwroot\ is not really correct, it should be \wwwroot\tikiwiki\..

How can one change this? Or why is it with some IIS installations, is there some configuration wrong?

I know that u can change the SERVER_PATH in the php.ini with doc_root = "c:\inetpub\wwwroot\" (default is c:\inetpub, which is even more wrong). But it doesn't change much.

FYI phpinfo, phpmyadmin and even DokuWiki works just fine.

Any help is most appreciated, thx alot,

Tobi

-------
Edit:

I just changed PHP from ISAPI to FastCGI and enabled cgi.fix_pathinfo = 1 and now I get:
"The directory 'c:\inetpub\wwwroot\tikiwiki2\tiki-install.php/templates_c/' does not exist."

As one can see, it cannot work this way. :/
TikiWiki 3.0 shows still a blank page.



Hi,

thx for ur suggestion and the requirements link. I checked the memory_limit and it is at 128M, so I think thats far enough. Only the max_execution_time was at 30 instead of 300, I changed this but that isn't the problem.

Do u or anyone know how to change the behavior of the install script to use only "$docroot" and not "$docroot+(tiki)"?
Because "$docroot" isn't enough, as I pointed out in my last post.
Or should I change it manually? Will it work?

Thx,
Tobi


ok . . so i got the same error after upgrading to tikiwiki 3.0 where it couldn't find all the directories and it was looking for root instead of root + tikiwiki directory.

after making the change above that was suggested, i now get a blank page.

any suggestions??