Jump to content


Installing DekiWiki on Uniform Server

  • Please log in to reply
2 replies to this topic

#1 MrBertie


    Junior Member

  • Member
  • Pip
  • 12 posts
  • Main OS: Windows Vista

Posted 03 December 2007 - 07:23 AM

Setting up Uniform Server for Dekiwiki:

**IMPORTANT: This does not work successfully on Vista (at least for me, it refuses to save edited pages--the Title, Tags, Attachments and Comments all work fine, but not Body Text...still working on it...)

I'd like to share my experience setting up Dekiwiki on Uniform Server. I like this WAMP server due to its small size, security and speed. Dekiwiki runs much faster using this than WOS.

So let's start here:

Download Uniform Server 3.5 (uniserver_3.5); extract into whatever folder you want; I used 'C:\Software\UniformServer', it doesn't have to be in a root drive
* use whatever directory you prefer--it creates its own virtual drive to work from, usually 'W:\'

Uniform Server is slimmed down, lean and mean, which means, for Dekiwiki, you'll need to add a few extra modules to Apache2 and PHP5, and enable them:
Using full Apache2 version 2.0.59:
copy sslaey.dd and libeay32.dll to C:Software\usr\local\apache2\bin
copy mod_proxy.so and mod_proxy_http.so into C:Software\usr\local\apache2\modules
enable both modules in usr/local/apache2/conf/httpd.conf, by removing the '#' in front
Using full PHP
copy php_curl.dll to C:\Software\usr\local\php\extensions
copy php_mime_magic.dll to C:\Software\usr\local\php\extensions
enable extension=php_curl.dll in php.ini
enable extension=php_mime_magic.dll in php.ini
* i.e. remove the ';' in front

Download the latest ImageMagick files:
Install and then copy the resulting folder from C:\Program Files into:
'C:\Software\usr\local\imagemagick' *(new folder)
* this could go anywhere but this seemed a logical place...
Then uninstall the ImageMagick program again

Download Deki Wiki Hayes and extract it somewhere
Copy the folder 'deki-hayes-files\web' to 'C:\Software\www\web'

Edit 'C:Software\usr\local\apache2\httpd.conf', and add the following lines to the virtual hosts section at end:

<VirtualHost *>
ServerName dekiwiki
DocumentRoot W:/www/web

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

RewriteCond %{REQUEST_URI} !/(@api|editor|skins|config)/
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 %{REQUEST_URI} !/dummy.php
RewriteCond %{REQUEST_URI} !/phpinfo.php
RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]

ProxyPass /@api http://localhost:8081
ProxyPassReverse /@api http://localhost:8081
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1

AllowEncodedSlashes On
* NOTE: some instructions show 'ProxyPass /@api http://localhost:8081 retry=1' however Apache 2.0.59 does not accept this parameter!

Start Uniform Server, using C:\Software\UniformServer\Server_Start.bat
* I've created a custom version of this batch file that displays a bit more start up information and also used W:\ if it already exists.

Open http://localhost/web/config/index.php in a browser.

Fill in the form:
Default database Superuser password is 'root'

Add the path for ImageMagick convert and ImageMagick identify:
*Note the use of W:\ for all path roots, this avoid problems later when you want to transfer the server to another drive, USB stick or computer

Click 'Install Deki Wiki!'

Hopefully the installation went successfully; if not check for error messages and rectify settings where necessary.

Upon completion the following line is displayed:
"Please run the following commands manually from the command line to complete your installation:"

Time to be disobedient, and do this instead:

Create the folder 'C:\Software\UniformServer\udrive\dekiwiki'
--or-- W:\dekiwiki (*virtual drive should now exist if you started the server!)

open 'W:\www\web\config' and:
copy mindtouch.deki.startup.xml into W:\dekiwiki
copy LocalSettings.php into W:\www\web\
copy AdminSettings.php into W:\www\web\
copy mindtouch.host.bat into W:\www\web\bin\

Using a text editor (e.g. notepad++ NOT Word!):
edit mindtouch.deki.startup.xml and change

edit mindtouch.host.bat and change

Create the folder 'W:\tmp'
* Needed by php for session saving. See php.ini, line 884: session.save_path = "/tmp/"

Run W:\www\web\bin\mindtouch.host.bat
* NOTE: mindtouch.host.bat needs to keep running, do not close it! There are solutions to hiding it; see below.

Open http://dekiwiki/, and enjoy the experience!

Other issues and solutions:

Q. As mindtouch.host.bat must to keep running, how do I get rid of the pesky cmd box running in my taskbar?

A. Google for and use 'hide.exe', download it, and put it into the W:\www\web\bin directory. Use it to create a shortcut to the mindtouch.host.bat file
Now run run the shortcut instead the batch file...voila, no cmd window!

Q. How do I get Deki-Wiki to work nicely with other sites on the same Apache server?

A. You need to open your Windows 'hosts' file and add the following line(s): localhost dekiwiki

#2 olajideolaolorun


    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,351 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 03 December 2007 - 12:08 PM


#3 MrBertie


    Junior Member

  • Member
  • Pip
  • 12 posts
  • Main OS: Windows Vista

Posted 26 January 2008 - 09:01 AM

The latest update of Dekiwiki now works properly in Vista...woopee!
See Dekiwiki on Vista/XP using Uniform Server for a more polished up-to-date installation guide
Important note: you'll need version Hayes 1.8.3b for this to work!

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users