Permalink: http://tinyurl.com/5d4wkg
For Official MindTouch Install and Upgrade guides click below:
See the Linux install guides above for official MindTouch installation guides for most popular Linux distributions FIRST before using one of the community contributed/edited install guides below.
You've seen it, you like it, now you want to run it! Follow the steps below to get DekiWiki up and running. While DekiWiki can run on several platforms (Mac OS X, Windows, Linux), this guide covers the installation on Debian 3.1 (Sarge).
We've built DekiWiki to be the easiest to use and best wiki on the planet. With this simplicity comes a little complexity. First things first. Let's install the prerequisites.
note from cwm9: I was unable to get this to work with Debian Stable r5. I had to add an 'unstable' repository in order to retrieve php4-imagick. I also had to replace the package pdftohtml with poppler-utils. After doing this apt-get started working, but eventually asked to remove the kernel(!). As a side note, pdftohtml is listed twice in the list. This really needs to be rechecked with the current version of Debian.
MindTouch hosts an apt repository for Mono since the Sarge stable tree doesn't contain the mono packages required to run DekiWiki. To get Mono, add the following to /etc/apt/sources.list
#DekiWiki Mono repo deb http://www.mindtouch.com/apt/ sarge main contrib non-free
This can be done with your favourite editor or by the lines below.
cat << --END-- >> /etc/apt/sources.list #DekiWiki Mono repo deb http://www.mindtouch.com/apt/ sarge main contrib non-free --END--
Now it's time to install the prerequisites using apt-get. As root, run the following:
apt-get update apt-get install apache2 mysql-server php4 php4-cli php4-pear php4-mysql libapache2-mod-php4 php4-imagick php4-mcrypt php4-mhash php4-xslt imagemagick wv pdftohtml pwgen make pdftohtml html2text htmldoc aspell links mono mono-classlib-1.0 mono-classlib-2.0 libmono-sqlite1.0-cil libmono-sqlite2.0-cil mono-mcs
We recommend tweaking three PHP parameters for DekiWiki
memory_limit -- maximum amount of memory a PHP process can use
post_max_size -- maximum size of an HTTP POST
upload_max_size -- maximum size of a file upload
Edit /etc/php4/apache2/php.ini and make the following changes:
memory_limit = 32MB post_max_size = 32MB upload_max_filesize = 32MB
Or if you want to use bigger attachments (up to 64 MB) use the following settings:
memory_limit = 128MB post_max_size = 64MB upload_max_filesize = 64MB
Install Pear Cache_Lite and XML_RPC packages
As root execute:
pear install Cache_Lite pear install XML_RPC
DekiWiki use mod_rewrite to provide "friendly" URLs. To enable mod_rewrite, do the following (as root):
a2enmod rewrite /etc/init.d/apache2 force-reload
Configure MySQL
If you didn't previously have MySQL installed you'll need to set the MySQL root password:
mysql -u root -e "set password = password('my_password');"
Get the latest DekiWiki bits from Open Garden
Direct Download: http://www.opengarden.org/download/d...current.tar.gz
Extract the files
tar xfvz dekiwiki-current.tar.gz
DekiWik use DotLucene and mwsearch for search indexing. To install and configure, do the following:
Build mwsearch (as root):
cd dekiwiki-current/mwsearch make install cp [[http://mwsearch.conf.mks/|mwsearch.conf.mks]] /etc/mwsearch.conf mkdir /var/run/mwsearch cp mwlucene /etc/init.d/mwlucene chmod +x /etc/init.d/mwlucene ln -s /etc/init.d/mwlucene /etc/rc2.d/S20mwlucene
Add MySQL root password to /etc/mwsearch.conf and change
password=
to
password=your_mysql_root_password
OPTIONAL: rebuild the search index each day at midnight
Add the following to /etc/crontab
echo "# Rebuild MWLucene Search Index" >> /etc/crontab echo "0 2 * * * root /usr/local/bin/MWUpdater --rebuild > /var/log/MWUpdater.log" >> /etc/crontab echo "30 2 * * * root /etc/init.d/mwlucene restart > /dev/null" >> /etc/crontab
Whew! The prerequisites are out of the way so let's install the DekiWiki bits. To make this process easier, we've provided an install script.
In your deki-current directory run ./installWiki.sh
installWiki.sh
Usage: ./installWiki.sh --wikiName wiki_name --domainName domain_name --dbRootPwd db_root_password [--wikiInstallBaseDir base_install_directory] [--dbName databaseName] Parameters: --wikiName: The name of your wiki. This is also used as the hostname for you wiki. Example: mywiki => mywiki.somedomain.com --domainName: Your domain name --dbRootPwd: MySQL password for root@localhost user. This is required in order to create the DekiWiki database --wikiInstallBaseDir: installation directory. Default is /var/www/ --dbName: The database name you want created. Defaults to --wikiName if not specified
This script performs the following actions:
Example: (as root)
./installWiki.sh --wikiName mywiki --domainName example.com --dbRootPwd my_mysql_root_pass
This will create your DekiWik at /var/www/mywiki.example.com/
NOTE: this script will provide the Sysop password that you'll need to log in to the wiki once we're all done.
Finally, it's time to configure Apache to serve up your DekiWiki installation. We're using name-based virtual hosting in apache so we'll create a config as follows (don't forget to enter your configuration data):
/etc/apache2/sites-available/dekiWiki
<VirtualHost *>
ServerName mywiki.example.com
ServerAdmin webmaster@mywiki.example.com
ErrorLog /var/log/apache2/mywiki.example.com-error_log
CustomLog /var/log/apache2/mywiki.example.com-access_log common
DocumentRoot /var/www/mywiki.example.com/
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/$ /index.php?title=Home [L,NE]
RewriteCond %{REQUEST_URI} !/(attachments|ControlPanel|editor|stylesheets|images|skins)/
RewriteCond %{REQUEST_URI} !/(redirect|texvc|index).php
RewriteCond %{REQUEST_URI} !/error/(40(1|3|4)|500).html
RewriteCond %{REQUEST_URI} !/favicon.ico
RewriteCond %{REQUEST_URI} !/robots.txt
RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]
</VirtualHost>
Create a symlink in /etc/apache2/sites-available
ln -s /etc/apache2/sites-available/dekiWiki /etc/apache2/sites-enabled/001-dekiWiki
Now reload apache
/etc/init.d/apache2 force-reload
As soon as your DNS entry for mywiki.example.com is setup (or you've configured your /etc/hosts or c:\windows\system32\drivers\etc\hosts) you will be able to access your wiki by going to: http://mywiki.example.com. Log into your DekiWiki using the Sysop password provided by the installWiki.sh script (the passowrds are also available in a file named password-mywiki.example.com in your DekiWiki directory.
Once DekiWiki is installed we recommend that you do the following: