Jump to content
The Uniform Server Community

Installing DekiWiki on Uniform Server


MrBertie
 Share

Recommended Posts

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 5.2.3.3:

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

</VirtualHost>

----------------------------------

* 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:

W:\usr\local\imagemagick\convert.exe

W:\usr\local\imagemagick\identify.exe

*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

<path.store>c:\dekiwiki\luceneindex</path.store>

to

<path.store>W:\dekiwiki\luceneindex</path.store>

 

edit mindtouch.host.bat and change

C:\dekiwiki\mindtouch.deki.startup.xml

to

W:\dekiwiki\mindtouch.deki.startup.xml

 

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):

127.0.0.1 localhost

127.0.0.1 dekiwiki

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...