Windows Server Install

Windows 2008R2 Server setup

[-]

This documentation provides detailed notes on a successful new installation of Tiki4.0 on a Windows 2008R2 Server.

Hopefully this will allow more TikiWiki users to take advantage of a Windows/IIS environment without the need of a WAMP install.

URL Rewrite module
Proper operation of Tiki versions prior to 8 on IIS requires that the URL Rewrite module for IIS is installed.

Special setup for img tracker field type

Special setup to show uploaded images from tracker field img is needed. please see here: Image Tracker Field

Software used:

  • Windows2008R2 Server Standard Edition (x64) - IIS 7
  • MySQL 5.1.41 (x64) Community Edition
  • MySQL GUI tools 5.0-r17-win32 (optional, but much easier)
  • PhP 5.3.1 nts-Win32-VC9 (x86)

Installed Windows:

  • Joined Domain, set static IP. (Running as Administrator)
  • Added IIS Role
  • Features for IIS:

Common HTTP Features

  • Static Content
  • Default Document
  • Directory Browsing
  • HTTP Errors
  • HTTP Redirection

Application Development

  • ASP.NET
  • .Net Extensibility
  • CGI
  • ISAPI Extensions
  • ISAPI Filters

Health and Diagnostics

  • HTTP Logging
  • Request Monitor

Security

  • Request Filtering

Performance

  • Static Content Compression

Management Tools

  • IIS Management Console

-

Windows: Turned off IE Enhanced Security
Windows: Ran MS Update installed all important and all optional updates.
Windows: Reboot server

Installed other software


Installed MySQL (x64) all defaults.
Installed MySQL GUI Tools.
Installed PHP 5.3.1 (x86) default settings installed to C:\PHP
Windows: Created C:\Temp directory
Windows: Under Security Settings, added everyone with full permissions to the following direc__tories:
__*C:\inetpub\wwwroot\

  • C:\PHP\
  • C:\Program files\MySQL
  • C:\Temp


Edited PHP.INI

  • include_path = ".;c:\php\includes" - uncommented (line 787)
  • cgi.force_redirect = 1 - uncommented (line 822)
  • fastcgi.impersonate = 1; - uncommented (line 850)
  • upload_tmp_dir="C:\temp" - changed from c:\windows\temp (line 908)
  • session.save_path="C:\temp" changed from c:\windows\temp (line 909)
  • error_log="C:\temp\php-errors.log" changed from c:\windows\temp (line 910)
  • date.timezone = America/New_York changed from blank (line 962)
  • sendmail_from = my email address changed from blank (line 1056)


Windows: Opened port 3306 in windows firewall for remote MySQL client tools access.
Windows: Unzipped TikiWiki 4.0 to c:\inetpub\wwwroot\tw4
Windows: Created a phpinfo.php file in c:\inetpub\wwwroot to validate the php install.

From LAN workstation:
Verified MySQL remote connectivity and using MySQL Query Browser, created a new schema (database) named Tiki4.
Opened IE8 and connected to the phpinfo.php page to verify PHP install and settings.

Take dog for walk and hoping for success!

From LAN workstation, opened FireFox Browser and pointed to the tw4 path, and got the tiki-install.php page.


-

TikiWiki 4.0 Install

[+]

Notes from IIS project for Tiki 5

[-]

(Spring 2010 notes by jonnyb)

Issues (install from svn HEAD)

  • Writable dirs not detected (by installer or tiki main)
    • Caused major issues, but only had to set /temp, /templates_c and db/local.php to run
  • Mail - errors from zend on smtp (default installation)
    • SMTP probably not running on server
    • Then needs tying into PHP?
    • Tiki SMTP is broken (fails with a timeout, on Windows as well as Unix). Chealer9 20100709
  • file write error on new tpls
    • example error
      Copy to clipboard
      PHP (5.2.12) ERROR (E_WARNING): File: C:\inetpub\wwwroot\tiki\lib\smarty\libs\internals\core.write_file.php Line: 44 Type: unlink(C:\inetpub\wwwroot\tiki\templates_c\ en^%%23^230^230491F8%%tiki-list_blogs.tpl.php) [function.unlink]: No such file or directory
    • That function blindly asks to delete a file without knowing whether it exists. This should be fine and most performant (since it saves a filesystem operation) using the PHP @ error-quieting operator, but that operator has no effect on Tiki since it uses custom error handling. This could be considered a PHP/Smarty bug highlighted by Tiki. We have a similar problem with php-openid. Chealer9 20100709


-

TikiWiki 5.0 Beta1 Install


I created a new Windows 2008R2 virtual server and using the basics listed above, installed 5.0 Beta 1 successfully.

I decided to use the latest software available, and ran into database errors during the Tiki installation with PHP 5.3.2 nts-Win32-VC9 (x386). This could have resulted in missing a line in the php.ini file, but I am pretty certain everything was in order. After starting over, I went back to 5.3.1 and had no issues.

I also used the latest version of MySQL (5.1.45 x64) with no problems.

Everything else was standard as per above.

Once I had a successful database creation, the page that came up looked like plain html. No formatting at all. However, I was able to change admin password and get into the site. After checking on #tikiwiki, Caarrie pointed me to Admin/Performance. There I unchecked the “Minify CSS” and all of the formatting was perfect! (Thanks again Caarrie). I am not sure if this is a default setting on installation, but if you run into this problem, it is a simple fix.