Loading...
 
Skip to main content

Architecture / Installation


Windows path error after install

I just attempted to upgrade a previous 1.9 installation to 2.2.

Following some older instructions (http://doc.tikiwiki.org/tiki-index.php?page=Windows+IIS+Install&bl=yQuestion) I went into the installer/tiki-install.php file and changed:

Image
Copy to clipboard
$docroot = dirname($_SERVER['PATH_TRANSLATED']);


to

Image
Copy to clipboard
$docroot = dirname('c:/inetpub/intranet');



I then went into tiki-setup_base.php and changed:

Image
Copy to clipboard
// Fix IIS servers not setting what they should set (ay ay IIS, ay ay) if (!isset($_SERVER['QUERY_STRING'])) $_SERVER['QUERY_STRING'] = ''; if (!isset($_SERVER['REQUEST_URI']) || empty($_SERVER['REQUEST_URI'])) { $_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']; }


to

Image
Copy to clipboard
// Fix IIS servers not setting what they should set: if (TikiSetup::os() == "windows") { $uri = $_SERVER["REQUEST_URI"]; $len = strlen($uri); if (substr($uri, $len -1) == "/") { $uri = substr($uri, 0, $len -1); } else { $uri = substr($uri, 0, $len - strlen($_SERVER["QUERY_STRING"]) -1); $uri = $uri . "?" . $_SERVER["QUERY_STRING"]; } $_SERVER["REQUEST_URI"] = $uri; }



When I ran the tiki-insaller.php file I ran the tiki_1.9to2.0.sql script and then the tiki_secdb_2.2_mysql.sql script. (I also tried this a separate time without running that second script)

When I finish with all of this I try to go to the main directory to login and I see this:

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/templates_c/' does not exist.

It is a similar issue to what the person at this link experienced:

http://tikiwiki.org/tiki-view_forum_thread.php?forumId=6&comments_parentId=26943&highlight=directory%20does%20not%20existQuestion

but when I attempt to locate the sections of the script he corrected I cannot find them. It appears as though he's using a different version, and I cannot find to where this section of the script has been moved.

Any ideas how I can correct this?

Thanks.