This page describes how to install Deki on a computer with Windows XP.  Installation on Windows isn't an easy process yet but we'll refine this guide as we go!



NOTE: The following features may not work when running on Windows.

  • Thumbnail generation - this requires ImageMagick
  • indexing of attachments for search

Downloads

Installation

IIS

  1. make sure to uninstall Internet Information Server (IIS) from the target computer as it will conflict with Apache
  2. Alternatively Apache can be configured on an alternate port (ex: 8080)

MySQL

  1. extract & install MySql into c:\wiki\mysql
  2. run c:\wiki\mysql\bin\winmysqladmin.exe
  3. enter root as username and a strong password as password (this will initialize MySQL and launch the service)

Apache

  1. install apache into c:\wiki (NOT c:\apache, because it always creates an apache2 subdirectory)
  2. Specify localhost as the server name and the domain name
  3. If you get error messages, edit httpd.conf and specify "Listen 127.0.0.1:8080" for the listen line. (You will have to connect to port 8080 if you do this.)
    • Note: this might be due to ISS listening already on port 80 or local firewall software such as McAfee.  Alternatively, IIS can be configured to listen on port 8080 through the Management Console.
    • If you change httpd.conf to fix any errors, you may have to go through the Apache installer's repair process to get it to pick up the changes.

php

  1. unzip php into c:\php
  2. copy c:\php\php4ts.dll into c:\windows\system32
  3. copy and rename c:\php\sapi\php4apache2.dll to c:\apache\apache2\modules\php4apache2.so
  4. copy c:\php\php.ini-recommended to c:\windows\php.ini

DekiWiki

1) Download DekiWiki

2) extract the tar.gz and copy the dekiwiki-current\dekiwiki\ folder to c:\dekiwiki\


Configuration


Apache

1. open c:\apache\Apache2\conf\httpd.conf

2. add the following lines after the last LoadModule statement

LoadModule php4_module modules/php4apache2.so
AddType application/x-httpd-php .php

3. find the line saying:

DocumentRoot "C:/apache/Apache2/htdocs"

and replace it with

DocumentRoot "C:/dekiwiki"

4. find the line that says

<Directory "C:/apache/Apache2/htdocs">

and replace it with

<Directory "C:/dekiwiki">

5. find the line saying:

DirectoryIndex index.html index.html.var

and replace it with

DirectoryIndex index.html index.html.var index.php

6. Enable the mod_rewrite module:  uncomment the following line "LoadModule rewrite_module modules/mod_rewrite.so"


7. Setup the mod_rewrite rules...Find this comment in httpd.conf


# Note that from this point forward you must specifically allow

Right above that comment block, add:


RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/$ /index.php?title=Home [L,NE]

RewriteCond %{REQUEST_URI} !/(attachments|ZendStudioServer|stylesheets|images|skins|editor|manual|htdocs|ControlPanel)/
RewriteCond %{REQUEST_URI} !/(redirect|texvc|index|Version).php
RewriteCond %{REQUEST_URI} !/error/(40(1|3|4)|500).html
RewriteCond %{REQUEST_URI} !/favicon.ico
RewriteCond %{REQUEST_URI} !/robots.txt
RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]


8. Enable mod_proxy - Uncomment the following lines:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so


10. restart apache by clicking its icon in the system tray

Deki installation

Note: You may need to increase you PHP.INI Max memory to 50M before running this script.

Note: If you experiencing slow page loading times then you may want to check the error logging and debug level that php is set to. c:\windows\php.ini


1. in a command shell:

cd c:\dekiwiki\config

2. run the installer script: (ignore any warnings)


c:\php\cli\php.exe install.php --site Deki --dbRootPwd <mysql_root_pass_from_above> --dbPwd changeme --sysOpPwd changeme --supportPwd changeme 

NOTE: Make _sure_ to use c:\php\cli\php.exe instead of c:\php\php.exe.  If you use the latter, the installation will fail.


3. after succcessful configuration, copy c:\dekiwiki\config\localsettings.php to c:\dekiwiki

copy LocalSettings.php ..


4. launch a browser and go to: http://localhost (Or http://localhost:8080 if you changed the port number). When prompted for a password use the following credentials

User: Sysop

Pass: changeme  (or whatever you used in step #2)

Not working on windows:

  • Thumbnails therefore affecting
    • upload logo
    • image gallery
  • Changing site-name, since it is part of network settings, which can't be changed on windows.


Tag page
Viewing 1 of 1 comments: view all
Hi,
This tutorial is very old, the programs and links related here doesn´t seem to be working anymore.
Can you update it?
Posted 16:48, 23 Sep 2008
Viewing 1 of 1 comments: view all
You must login to post a comment.