Jump to content


MrBertie

Member Since 28 Nov 2007
Offline Last Active Jan 27 2008 08:15 AM
-----

Topics I've Started

Installing DekiWiki on Uniform Server

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

Having trouble with Proxy settings in a Virtual Host

01 December 2007 - 03:45 AM

I've almost got Dekiwiki functioning on Uniform Server, apart from one thing... I can't get the proxy module to work correctly. I have created a new virtual host in httpd.conf as follows:

-----------------------------------
<VirtualHost *>
ServerName dekiwiki
DocumentRoot /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 retry=1
ProxyPassReverse /@api http://localhost:8081
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1

AllowEncodedSlashes On
</VirtualHost>
-------------------------------------

By commenting and uncommenting lines I can see that the problem lies with the ProxyPass directives. If I uncomment them the apache server will not start.

As mentioned on another thread Installing Dekiwiki... I've now managed to install the correct mod_proxy module and enable them in apache2. But despite searching these forum, Dekiwiki's forums and elsewhere I'm thoroughly stuck!
Does anyone know where next to look?

Installing Deki Wiki on Uniform Server

28 November 2007 - 04:10 AM

I am trying to install the incredible DekiWiki on Uniform Server. I've already succeeded using WOS (after many days and much 'googling') but I much prefer Uniserver...
My first problem is that I cannot enable 'mod_proxy' or 'mod_proxy_http'--the server simple stops working if these modules are enabled. They are not included in standard Uniserver release but I have added them manually. Am I missing something? Or are the dependancies for Deki Wiki too many?
Any ideas, hints or suggestions would be much appreciated!