History: Install19onIIS
Preview of version: 14
Tikiwiki 19 on IIS
I am developing a complete set of instructions for TW 1.9 that will be available when 1.9 comes out.
These are the steps I used when I installed a fresh copy of TW19 on IIS 5 and IIS 6.
I followed the instructions on the IISInstall page when I first started using TW back at version 1.6, so be sure that you follow them if this is your first time setting up TW on your system. I've included a portion of the code samples from the IISInstall page below.
Download and unpack the contents of the 19 distribution into a folder.
Create the IIS virtual directory for the IIS server, pointing to the directory where TW19 was placed.
Edit the tiki-install.php and tiki-setup.php files accordingly:
- Edit c:\tikiwiki_*\tiki-install.php (the actual directory depends on which version you have installed)
- You will need to use a UNIX-linefeed-friendly editor. I use Crimson Editor
- Change the line: $docroot = dirname($_SERVER['SCRIPT_FILENAME']);
- To: $docroot = dirname('c:/tikiwiki_*'); // Specify the real directory based on the TikiWiki version
- Edit c:\tikiwiki_*\tiki-setup.php (the actual directory depends on which version you have installed)
- You will need to use a UNIX-linefeed-friendly editor. I use Crimson Editor
- Change the line: $docroot = dirname($_SERVER['SCRIPT_FILENAME']);
- To: $docroot = dirname('c:/tikiwiki_*'); // Specify the real directory based on the TikiWiki version
- Change
// Fix IIS servers not setting what they should set 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:
// 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; }
Search the tiki-setup.php file for the following line: $smarty->assign('feature_bidi', $feature_bidi);
Add the following into the line above: $feature_bidi = 'n';
Search the tiki-setup.php file for the following: $docroot/$dir/$tikidomain
and comment out the section of code:
// foreach ($dirs as $dir) { // if (!is_dir("$docroot/$dir/$tikidomain")) { // $errors .= "The directory '$docroot/$dir/$tikidomain' does not exist.\n"; // } else if (!is_writeable("$docroot/$dir/$tikidomain")) { // $errors .= "The directory '$docroot/$dir/$tikidomain' is not writeable by $wwwuser.\n"; // } // }
Open up the TW web site from a browser to begin the setup process.