History: IisInstall
Preview of version: 13
Upgrading Major TikiWiki Releases
- There's an error message after adding a blog, but the blog is added correctly
- Don't use the Mozilla theme or you'll be sorry
- Office documents don't properly download from IE. Right click on the attachment and choose "Save Target As..."
- You'll get an error message if you click on "last forum topics" on the right and try to edit the post
- Renavigate to the post using the forum list and then edit the post
- Reading a forum thread that doesn't have any comments results in the right sidebar being displayed underneath the left sidebar
- Go to the control panel, add/remove programs, and click the add/remove Windows Components button
- Select IIS
- You may need to reboot
- Go to the start menu, followed by Windows Update
- Install all service packs and critical updates
- Download MySQL
- How to install mySQL on Windows
- Install MySQL as a service as described in the above link
- By default, it is possible to log into MySQL with no username or password. I don't know how to change this behavior, but it's not a recommended configuration.
- Download TikiWiki
- Using WinZip, extract to c:\ using folder names
- Enter the following from the command line:
- cd /d c:\tikiwiki_*
- mkdir templates_c
- cd db
- \mysql\bin\mysqladmin create tiki
- \mysql\bin\mysql tiki < tiki.sql
- Go to Windows Explorer and modify the security for the folder c:\tikiwiki_*\templates_c
- Allow write access for the users whose names start with IUSR and IWAM
- Edit c:\tikiwiki_*\db\tiki-db.php. Use "full control" if you have problems.
- You will need to use a UNIX-linefeed-friendly editor. I use Crimson Editor
- Change tiki16 to tiki, which is the database name (this is unnecessary in 1.7)
- Also change the user name and password if you set up MySQL security
- 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 (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: // Fix IIS servers not setting what they should set (ay ay IIS, ay ay) 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; }
- See also PHP EasyWindows Installer
- Download page is here
There are two ways to use PHP. CGI or ISAPI.
ISAPI
- Follow these instructions
- Copy php.ini to c:\winnt
CGI
- Download and run the setup program
- Install PHP to c:\php
- Ignore errors regarding "missing OCX"
- Run Start/Program Files/Administrative Tools/Internet Services Manager
- Navigate to your web site
- Right-click on Default Web Site and select New/Virtual Directory
- Directory name: tiki
- Directory location: c:\tikiwiki_* (actual directory depends on which version you installed)
- Check the "Execute" check box
- Right-click on Default Web Site again
- Go to the Home Directory Tab
- Click the Configuration... button
- Click Add
- Executable: c:\php\php.exe
- Extension: .php
Both
- Modify c:\winnt\php.ini
- Search for "SMTP" and enter your SMTP server and return email address
- This page contains a simple PHP script. Copy everything between < php and ? > (inclusive) to the file c:\tikiwiki_*\test.php (actual directory depends on which version you installed)
- Fire up your browser and go to http://localhost/tiki/test.php
- You should see a page that contains all the holidays in the current year — if not, review this documentation with the actual steps you performed
- Go to http://localhost/tiki/tiki-install.php
- The password for the admin account is 'admin'
- If it asks to create a new database, skip it
- Go to http://localhost/tiki/index.php
- Log in as admin/admin and promptly change the password
- It is recommended that you delete c:\tikiwiki_*\tiki-install.php or move it to a folder that isn't accessible via the web
please also see:
IisTroubleshooting
IisWorkarounds