Friday, May 2, 2008

WOS Forum / Please add Deki Wiki to the install packages

WOS Forum / Please add Deki Wiki to the install packages


I have Deki-Wiki running within WOS on Windows XP. I hope this can help to create a package (if possible and if you like to).

This is what I did to get it running:

* Installed a fresh copy of WOS with Apache, PHP5, MySQL and ImageMagick.

* Sort of followed installation http://wiki.opengarden.org/User:PeteE/W … on_(Hayes), below is what I did:


1) Edit MySQL my.ini to checked that NO_AUTO_CREATE_USER was not in the sql-mode setting:

# Set the SQL mode to strict
#sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"

* It is not by default in WOS.


2) Edit PHP5\php.ini and set the following values: short_open_tag = On

* It is by default in WOS.


3) Enabled cURL by uncommenting extension=php_curl.dll in the php.ini file.


4) For cURL to be able to be enabled the dll's libeay32.dll and ssleay32.dll need to be copied to the C:\WINDOWS\system32\ folder.

(* Please see remarks/questions at the end)

*Update* A better solution for the cURL files has been found: Copy the dll's libeay32.dll and ssleay32.dll to the \wos\apache2\bin\ folder.


5) Downloaded Deki Wiki Hayes and extracted it. Copied the deki-hayes-files\web folder to WOS\www\web.


6) Copied file mono.posix.dll from deki-hayes-files\src\redist folder to WOS\www\web\bin.


7) Edited httpd.conf file to check that PHP5 is enabled:

LoadModule php5_module "D:/WOS/php5/php5apache2.dll"

* It is by default in WOS.

Added the follwong lines:


DocumentRoot "D:/WOS/www/web"
ServerName localhost

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



8) Enable the following additional modules in httpd.conf:

LoadModule rewrite_module modules/mod_rewrite.so (* already loaded by default in WOS)
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so


9) Started WOS


10) Opend http://localhost/web/config/index.php in my browser.


11) Filled in the form:

Left the Database Superuser password empty.

Added the path for ImageMagick convert and ImageMagick identify:
WOS\ImageMagick\convert.exe
WOS\ImageMagick\identify.exe


12) Clicked Install Deki Wiki!

* Installation went successful!



13) The following line is displayed "Please run the following commands manually from the command line to complete your installation:"

cd D:\WOS\www\web\config
mkdir C:\dekiwiki
copy mindtouch.deki.startup.xml C:\dekiwiki
copy LocalSettings.php D:\WOS\www\web\
copy AdminSettings.php D:\WOS\www\web\
copy mindtouch.host.bat D:\WOS\www\web\bin\
cd D:\WOS\www\web\bin
mindtouch.host.bat

* Handled it a bit different and did the following:

13a) cd D:\WOS\www\web\config

13b) mkdir D:\WOS\dekiwiki

13c) edit mindtouch.deki.startup.xml and changed
c:\dekiwiki\luceneindex
into
d:\WOS\dekiwiki\luceneindex

13d) edit mindtouch.host.bat and changed
C:\dekiwiki\mindtouch.deki.startup.xml
into
D:\WOS\dekiwiki\mindtouch.deki.startup.xml

13e) copy mindtouch.deki.startup.xml D:\WOS\dekiwiki

13f) copy LocalSettings.php D:\WOS\www\web\

13g) copy AdminSettings.php D:\WOS\www\web\

13h) cd D:\WOS\www\web\bin

13i) mindtouch.host.bat

* mindtouch.host.bat needs to keep running.


14) Opened http://localhost/

* DekiWiki (Hayes) is running.



Remarks/Questions:

* It seems that the WOS path is only in the files mindtouch.deki.startup.xml and mindtouch.host.bat and in mysql tables mysql\data\mysql\tables_priv.MYI and mysql\data\wikidb\config.MYD (both found doing a text search not a querie on the tables. Not sure what it is used for).


* It seems that the path for ImageMagick is only in mindtouch.deki.startup.xml.

* mindtouch.host.bat needs to keep running, how do you get the apache and MySQL cmd boxes to vanish after startup of WOS? I do not like it that a cmd box needs to keep on running in my taskbar. Is it possible to do the same with the mindtouch.host.bat cmd box?

* I was not able to get mindtouch.host.bat run from the option "Start this external app"? How can this be done?

* Is there a way to get the dll's libeay32.dll and ssleay32.dll loaded from the WOS\php5 folder so they do not have to be copied to the C:\WINDOWS\system32\ folder?

* I do not know what to do with the VirtualHost part to get Deki-Wiki to run next to other web sites/applications. What should I do to accomplisch this?

No comments: