Loading...
 
Skip to main content

History: Install19onIIS

Preview of version: 10

<Tikiwiki 19 on IIS>

These are my notes from my try at installing 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, 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.

STEP 1

Download and unpack the contents of the 19 distribution into a folder.

STEP 2

Create the IIS virtual directory for the IIS server, pointing to the directory where TW19 was placed.

STEP 3

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;
}

STEP 4

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';

STEP 5

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";
//            }
//        }
STEP 6

Open up the TW web site from a browser to begin the setup process.

History

Advanced
Information Version
drsassafras Mass search and replace 20
View
mlpvolt 19
View
mlpvolt 18
View
stevena 17
View
amette made step 4 easier to understand 16
View
amette minor error-corrections 15
View
eilorux 14
View
Oliver Hertel 13
View
eilorux 12
View
eilorux 11
View
eilorux 10
View
eilorux 9
View
eilorux 8
View
eilorux 7
View
eilorux 6
View
eilorux 5
View
eilorux 4
View