このページは2007年 10月 16日, 04:38に更新されました by wernst

Windows

From $1

Notes on installing Deki Wiki Hayes on Windows (including Vista).

Prerequisites

  • Apache 2.2
  • MySQL 5.X
  • PHP 5.X
  • Microsoft .NET 2.0 (Mono 1.2+ if Windows 2000)
  • ImageMagick 6.3.5

MySQL Installation

Download the MySQL Win32 Installer

Edit your my.ini file:  C:\Program Files\MySQL\MySQL Server 5.0\my.ini

Make sure you DO NOT have NO_AUTO_CREATE_USER in your sql-mode setting

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

Restart MySQL:
Goto Start > Run > Services.msc > Right Click on MySQL service and select "RESTART" or "STOP" then "START"

Apache Installation

Download the Apache 2.2 Win32 installer

PHP Installation

Download PHP5 for Win32 (installer)

Make sure to choose "Apache 2.2.x Module" in the installer

On the "Choose Items to Install" screen, make sure the following extensions are enabled

  • Curl
  • GD2
  • MySQL
  • MySQLi
  • Mime_Magic (be sure to set the mime_magic.magicfile path. usually php/extras/magic.mime)
  • mbstring (if you using php-5.2.3-win32-installer.msi the mbstring extension isn't avaliable. Download php-5.2.3-Win32.zip[no install] and copy mbstring from php-5.2.3-Win32.zip\ext\php_mbstring.dll, or download the attached file, to C:\Program Files\PHP\ext and restart your machine.)

Extras:

  • PEAR Install (optional)

Edit C:\Program Files\PHP\php.ini

set the following values:

short_open_tag = On

Uncomment ;extension=php_mbstring.dll IE: ;extension=php_mbstring.dll becomes extension=php_mbstring.dll

ImageMagick

Download ImageMagick for Win32

Run the installer and choose the defaults.


.NET 2.0 Runtime

Make sure you have the Microsoft .NET 2.0 framework installed


Download Deki Wiki Hayes

Download the latest Deki Wiki Source Release

Extract the archive to:  c:\deki-hayes\

Copy file mono.posix.dll from C:\deki-hayes\src\redist in c:\deki-hayes\web\bin

Apache Configuration

Edit your httpd.conf file:  C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

Enable PHP5

LoadModule php5_module "c:/Program Files/PHP/php5apache2_2.dll" 

Enable the following additional modules:

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so 

Create a VirtualHost like:

<VirtualHost *>
    DocumentRoot "c:/deki-hayes/web"
    ServerName deki-hayes
 
    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>

If you running Windows XP please take note of the following: Inside httpd.conf please make sure you have the following line in red:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from all
#    Satisfy all
</Directory>

I spent about an hour trying to figure out why I kept getting 403 Forbidden errors.  From messing with .htaccess files to uncommenting everything in the httpd.conf - Mike

Restart apache2 to load the new configuration. 

Installation

Before open http://deki-hayes add in file c:\WINDOWS\system32\drivers\etc\hosts following line: 127.0.0.1 deki-hayes

To install Deki Wiki, launch a web browser and access the Web Installer by and go to the URL of your Deki.  Example:  http://deki-hayes/

If you get an error saying the following:
Error: Could not find a suitable database driver!
For MySQL, compile PHP using --with-mysql, or install the mysql.so module

-Copy C:\Program Files\MySQL\MySQL Server 5.0\bin\libmysql.dll  to c:\windows\system32
-Restart Apache2 - Mike

If you get an error saying the following:
FATAL: curl is not enabled. curl is required to connect to deki-api. Aboring... 
-Copy C:\Program Files\PHP\ssleay32.dll to c:\windows\system32
-Copy C:\Program Files\PHP\libeay32.dll to c:\windows\system32
-Restart Apache2 - Mike

Else Continue:
1) Fill in the required information

2) In the "Advanced Configuration" specify the location of the ImageMagick convert.exe and identify.exe binaries

ImageMagick convert:  C:\Program Files\ImageMagick-6.3.5-Q16\convert.exe 

ImageMagick identify:  C:\Program Files\ImageMagick-6.3.5-Q16\identify.exe 

./ImageMagickConfig.png

Click "Install Deki Wiki"

You should see a confirmation screen like this:

./InstallComplete.png

Open up a command prompt: Start >> Run >> cmd.exe
Important: Under Windows Vista you must run cmd.exe with Administrator privileges.  Do this by opening Windows Explorer, navigate to the 'C:\Windows\System32' folder, right-click on 'cmd.exe' and select 'Run as administrator'.

Run the additional commands as specified by the installer.

Important: after you execute the last command, mindtouch.host.bat,  leave the cmd window open so the batch file (and the exe file it calls) can keep running. If you close that window, various servers Deki requires aren't running, and you can't use the wiki.

Then click the link to access your wiki!

If you get the following error:

http://img261.imageshack.us/img261/4760/errorfe6.png

Its because of the .NET framework. mono-1.2.4-gtksharp-2.8.3-win32-3.exe didn't work for me and I eventually had to uninstall mono and install the framework :) -Mike


Also If you get the following error:

Deki Wiki/Installation and Upgrade/1.8 "Hayes" Official Install and Upgrade Guide/Windows/error.PNG

Read what I posted at the top of this page about mbstring -Mike

ファイルサイズ日付添付したユーザ 
 error.PNG
説明なし
20.36 kB2007年 8月 28日, 08:58Mike_Smithアクション
 httpd.conf
sample httpd.conf
19.37 kB2007年 7月 25日, 20:15peteeアクション
 ImageMagickConfig.png
ImageMagick configuration
22.99 kB2007年 7月 23日, 23:17peteeアクション
 InstallComplete.png
Successful installation
72.02 kB2007年 7月 23日, 23:22peteeアクション
 php_mbstring.dll
説明なし
1828.06 kB2007年 8月 28日, 08:59Mike_Smithアクション
コメント(18)
全18件のうち15件のコメントを表示: 全て見る
Kudos to Pete. A perfect install on Vista once every instruction was followed. Now to skin the beast.
投稿日:2007年 8月 14日, 15:30 ()
when I clicked "Then follow 'this link' to your wiki", configuration page redirect to my deki wiki page and display content "Your site settings could not be loaded - this could affect your wiki's operations. Please check to ensure that Dekihost is running.
This page's contents could not be loaded.".

How I should do, please explain step by step.

Thanks.
投稿日:2007年 9月 1日, 00:59 ()
The ImageMagick download link posted above is no longer available. You can find the updated binaries from the parent directory http://www.imagemagick.org/download/binaries/
投稿日:2007年 9月 18日, 14:15 ()
jalfano - Thx! I updated the page to link to the binaries folder.
投稿日:2007年 9月 18日, 16:17 ()
After upgrading to 1.8.2 I had to edit my php.ini to set allow_call_time_pass_reference = On (is defaulted to Off) in order to stop getting "PHP Warning: Call-time pass-by-reference has been deprecated;" errors in my apache error.log
投稿日:2007年 9月 24日, 13:53 ()
The dot.net 2.0 is not ready for Windows 2000
With mono :
Add in mindtouch.host.bat :
set CMD=mono C:\deki-hayes\web\bin\mindtouch.host.exe ...
All work fine !

(C:\PROGRA~1\MONO-1~1.1\bin; in path) 2007年 9月 27日, 17:26に編集
投稿日:2007年 9月 27日, 17:22 ()
Nice installation instructions for Windows, but has anyone been able to add the required components to "Print pages as PDF" ?

I can't seem to install "html2ps" and "ps2pdf" in a usable form for deki-wiki
投稿日:2007年 10月 1日, 19:57 ()
I am also having issues with the PDF printing. I've posted a forum query here: http://forums.opengarden.org/showthread.php?t=501 2007年 10月 10日, 18:17に編集
投稿日:2007年 10月 10日, 18:16 ()
Ichi: this happens when you close the cmd window after running the mindtouch.host.bat file. I know, the instinct of a Windows user is to close cmd windows after batch files run, but in this case, the file needs to keep running. You might need to make the batch file something that runs every time windows starts up to make your life easy afterwards.
投稿日:2007年 10月 16日, 04:28 ()
As to pdf printing, a work around that I actually prefer in the Windows environment because of its applicability to all Windows applications is to install PDFCreator or doPDF (albeit this is a client side solution). These both create a PDF virtual printer for all Windows applications. Using this approach for printing a Deki Wiki page in Firefox creates a pinted page that only includes the actual page content without the Deki Wiki heading or the navigation pane. The only shortfall I see is that it doesn't print out the comments should you want those. But that seems to be a function of how Deki Wiki defines the printable area? Even a Firefox page print preview does not include comments. 2007年 11月 1日, 02:57に編集
投稿日:2007年 10月 25日, 02:26 ()
For PHP install (5.2.3 and 5.2.4):
I found the mbstring extension listed as "Multi-Byte String". Also, mime_magic was listed as "mimetypec". With those extensions selected, I had no issues with an automated install.

I didn't find any path info for mime_magic, but install was clean and ran fine without that change. Anybody have a more detailed set of instructions for the mime_magic path?
投稿日:2007年 10月 25日, 08:54 ()
In the httpd.conf of Apache server i had to insert:

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/installpath/php"

Otherwise php was not interpreting the target and showed only the text of the php file. After this I at least have the directory listing and .php files are interpreted
投稿日:2007年 10月 25日, 14:05 ()
Can someone take the pertinent installation information from the comments and integrate it with the instructions above? I'd do it but I don't think I'm qualified :D
投稿日:2007年 11月 8日, 20:18 ()
HI, I have just few expirience with and apache+php+mysql.
I tried to setup Dekiwiki by this howto. The how to is great but, I have a Problem my Dekiwiki cals "Your wiki is downArgh, sorry! We're experiencing some technical problems right now. An administrator has been notified and will restore your wiki as soon as possible. Thanks for your patience!
"
If I comment the "proxy_http_module" in the apache conf the wiki says "Permission denied...". ??
What should I do?
投稿日:2007年 11月 23日, 12:01 ()
schtoll - I don't know if this afflicts you...BUT.. if MySQL is not running (OR..your wiki cannot connect to the database), you will get the 'Your wiki is down' message.
投稿日:2007年 11月 28日, 00:51 ()
全18件のうち15件のコメントを表示: 全て見る
あなたはコメントを投稿するには ログイン しなければなりません。