Vista/XP on Uniform Server


    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 than my previous attempt with WOS.

    The Uniform Server

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

    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:

    Obtain the full Apache2 web server, version 2.0.59, see this post:

    • copy sslaey.dll 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 version of 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 2)
    • enable extension=php_mime_magic.dll in php.ini

    ImageMagick graphic library

    Download the latest ImageMagick files:

    • Install and then copy the resulting folder from C:\Program Files into:
      • 'C:\Software\usr\local\imagemagick' (i.e. create a new folder for this) 3)

    Then uninstall the ImageMagick program again

    Dekiwiki source code

    Download Deki Wiki Hayes and extract it somewhere accessible. 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 [url]http://localhost:8081[/url]
        ProxyPassReverse /@api [url]http://localhost:8081[/url]
        SetEnv force-proxy-request-1.0 1
        SetEnv proxy-nokeepalive 1
    
        AllowEncodedSlashes On
    </VirtualHost>
    ----------------------------------
    

    NOTE: some instructions show the following, however Apache 2.0.59 does not accept this parameter:

    ProxyPass /@api [url]http://localhost:8081[/url] retry=1 

    Starting the server

    Start Uniform Server, by double-clicking C:\Software\UniformServer\Server_Start.bat

    • Personally I use a customed version of this batch file that displays a bit more startup information and also uses 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 Dekiwiki!

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

    Final configuration

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

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

    becomes

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

    Edit mindtouch.host.bat:

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

    becomes

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

    Create the folder 'W:/tmp' 5)

    Run W:\www\web\bin\mindtouch.host.bat by double-clicking on it

    • NOTE: mindtouch.host.bat needs to keep running, do not close it! There are solutions to hiding it; see below.
    • VISTA: you need Administrator's rights to run this file, you can find plenty about this problem elsewhere on the forum…;-)

    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. 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 Dekiwiki to work nicely with other sites on the same Apache server?
      • A. You need to open your Windows 'hosts' file 6) and add the following line(s):
      127.0.0.1  localhost
      127.0.0.1  dekiwiki
    
    

      

    Footnotes

    1. Use whatever directory you prefer – it creates its own virtual drive anyway to work from, usually 'W:\'
    2. i.e. remove the ';' in front
    3. This could go anywhere but this seemed a logical place…
    4. This virtual drive should now exist if you started the server!
    5. Needed by php to save sessions. See php.ini, line 884: session.save_path = ”/tmp/”
    6. Usually to be found in C:\Windows\System32\drivers\etc\

    .

    Tag page
    Viewing 1 of 1 comments: view all
    You told to "copy sslaey.dll and libeay32.dll to ..."
    .. but where are those dlls? Where can I find them?

    Please Help!
    Posted 11:57, 23 Sep 2008
    Viewing 1 of 1 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by