MindTouch Developer Center > Deki - English > Installation and Upgrade > 1.9.0 Itasca Source Code Install and Upgrade Guide

1.9.0 Itasca Source Code Install and Upgrade Guide

For Official MindTouch Install and Upgrade guides click below:

MindTouch Deki Wiki VMware certified downloadDownload Now
MindTouch Deki Wiki Linux  packages and install guidesView Install Guide

  

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.

  

Disclaimer: This page is intended for a linux-savvy (geeky) audience.  ;)

  

Please note: The following instructions are for source code installations and version upgrades on Debian Linux. Official VMWare Certified Deki Wiki download and installation instructions as well as package-based installation guides can be found here: Official MindTouch Installation Guides

  

  

This guide provides steps for installing Deki Wiki Itasca from source code. Keep in mind you can install Deki Wiki in minutes if you install using the VMware certified Deki Wiki.This is a great way to deploy, but it's also a great way to bang on Deki Wiki to see if it's a good fit for you.

NOTE: many of the steps below have Debian-specific elements and paths. If you have modifications to this install guide for other distros please create a new install guide, add the modifications and name it for the distro it's intended for.

Fresh Install:

Prerequisites

  • Apache 2.x
  • MySQL 5.0.X - NOTE: Deki Wiki Hayes uses stored procedures and is therefore incompatible with MySQL 4.x
  • PHP 5.X - NOTE: Deki Wiki Hayes uses the PHP5 object model and is therefore incompatible with PHP4
  • Mono 1.2.X

Install the prerequisites using apt-get (Debian)

apt-get install apache2 php5 php5-cli php5-mysql libapache2-mod-php5 php5-mcrypt \
php5-mhash php5-gd php5-curl imagemagick wv pdftohtml html2text html2ps htmldoc aspell \
links curl mysql-server-5.0

Install mono

apt-get install mono-gmcs mono-mcs libmono-sqlite2.0-cil libmono-sqlite2.0-cil libmono-system-web2.0-cil

Download Itasca Bits

Download the Deki Wiki Itasca build from one of the following sources:

Extract the archive to your home directory:

cd ~/
tar xfvz Deki_Wiki_1.9.0_Itasca_source.tar.gz
cd Deki_Wiki_1.9.0_Itasca_source

Copy web files to your apache directory

mkdir /var/www/dekiwiki
cp -r web/*  /var/www/dekiwiki
chown -R www-data /var/www/dekiwiki 

Configure Apache

cd ~/Deki_Wiki_1.9.0_Itasca_source

Edit the ./config/deki-apache.conf file

Change the following values according to your setup:

ServerName dekiwiki
DocumentRoot "/var/www/dekiwiki"

Copy the apache config file (for example, in Debian do:)

cp config/deki-apache.conf /etc/apache2/sites-available/deki
ln -s /etc/apache2/sites-available/deki /etc/apache2/sites-enabled/001-deki

Enable the mod_rewrite module

a2enmod rewrite 

Configure Apache for deki-api

The deki-api is a .NET application which runs under the mono runtime.  deki-api runs as a standalone mono application which uses MindTouch Dream's built-in webserver.  mod_proxy proxy is used to proxy requests from apache to deki-api.

Enable mod_proxy_http module

a2enmod proxy
a2enmod proxy_http

Edit the mod_proxy config file (/etc/apache2/mods-available/proxy.conf on Debian) and make sure you have the following:

<Proxy *>
    AddDefaultCharset off
    Order deny,allow
    Deny from all
    Allow from all
</Proxy>

Edit your deki apache config file /etc/apache2/sites-available/deki and make sure the following lines are uncommented

# mod_proxy rules
ProxyPass /@api http://localhost:8081 retry=1
ProxyPassReverse /@api http://localhost:8081
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1 

Restart apache to enable the module and apply the new settings

/etc/init.d/apache2 restart 

Configure deki-api

Create the deki-api logfile

mkdir /var/log/dekiwiki
touch /var/log/dekiwiki/deki-api.log
chown www-data /var/log/dekiwiki/deki-api.log

Create the mono .wapi directory (Note: the mono .wapi directory needs to exist in the home directory for your apache user.  In debian the www-data user's home dir is: /var/www/  but this location may be different for different linux distros.)

mkdir /var/www/.wapi
chown www-data /var/www/.wapi

Copy the Deki Wiki init script

cp config/dekiwiki-init.debian /etc/init.d/dekiwiki

Install the init script into the default runlevels

update-rc.d dekiwiki defaults

Install using the web-installer

Launch a browser and go to the installer:

http://dekiwiki/config/index.php

Fill in the required information and click "Install Deki Wiki"

Complete the installation by running the additional commands as instructed by the installer.

Troubleshooting

If deki-api failed to load try the following:

* if you get "no default auth service" make sure your proxy settings are correct and that your firewall isn't blocking port 8081.

* if your database name has an underscore, you have get an "execute command denied" error. If so, create a new database user, grant them the right perms (CRUD), and set them as the database user in LocalSettings.php

* make sure the mono process is running

ps ax|grep mindtouch.host

You should see a process like:

www-data  3401  0.5 15.9  67292 40892 pts/0    Sl   19:25   0:03 mono \ 
/var/www/dekiwiki/bin/mindtouch.host.exe apikey 92669 script \ 
/etc/dekiwiki/mindtouch.deki.startup.xml \
 path-prefix @api http-port 8081 ip localhost notty

If you don't see the process above, check the dekiapi error logs (/var/log/dekiwiki/deki-api.log) for more details

You can restart the deki-api process by:

/etc/init.d/dekiwiki restart

Verification

Verify your new Deki Wiki Hayes installation by launching a browser and going to the following URI:

http://dekiwiki

Update from Hayes 1.8x to Itasca 1.9x:

Upgrading from from previous version of Hayes to Itasca is a matter of updating the PHP and C# bits, and then running the database update scripts.

A step by step guide is available here.   This is the standard upgrade procedure - the complexity of upgrading from gooseberry to hayes upgrade was an anomaly.

  

Tag page
Viewing 9 of 9 comments: view all
Hmmm... Is this it? How do I get the Itasca bits? Am I supposed to download from SourceForge tarball or the Subversion trunk?

Andrew
Posted 00:53, 1 Mar 2008
Following the fresh install instruction I run into a couple of problems, installing on Ubuntu 6.06 LTS Dapper.

apt-get install libmono-sqlite2.0-cil
return
E: Couldn't find package libmono-sqlite2.0-cil

(is this a mandatory package?)

Next problem:

/etc/init.d/apache2 restart

* Forcing reload of apache 2.0 web server...
[Sun Mar 02 16:46:27 2008] [warn] module proxy_http_module is already loaded, skipping
Syntax error on line 27 of /etc/apache2/sites-enabled/001-deki:
ProxyPass takes 1-2 arguments, a virtual path and a URL
[fail]

The dekiapi error log (/var/log/dekiwiki/deki-api.log) is empty

/Johan
Posted 15:50, 2 Mar 2008
I have just updated from Hayes. How do i get the mindtouch.host.conf file?
Posted 12:12, 4 Mar 2008
In section "Prerequisites" above the Install Mono instruction reads as follows:

"apt-get install mono-gmcs mono-mcs libmono-sqlite2.0-cil libmono-sqlite2.0-cil libmono-system-web2.0-cil"

"libmono-sqlite2.0-cil" is listed twice. Should one of these be deleted or should the first be corrected to "libmono-sqlite1.0-cil"?

Posted 16:39, 17 Mar 2008
Instructions above to:

Restart apache to enable the module and apply the new settings

/etc/init.d/apache2 -k restart

Command to restart apache2 per the Apache Manual is:

/etc/init.d/apache2 restart
Posted 01:42, 21 Mar 2008
I updated the Hayes to Itasca section to link to Aurora's step by step guide, as it contained a number of steps that were missing in this guide.

Additionally, I removed what appeared to be an irrelevant section on how to upgrade Gooseberry to Hayes.
Do we need a section on how to upgrade Gooseberry to Itasca? Or is the answer upgrade to Hayes first, then upgrade to Itasca?
Posted 09:50, 28 Mar 2008
On ubuntu server 7.10 the above instructions pretty much work. On ubuntu server 7.10 poppler-utils needs to be installed to get pdf2html pkg.

When you point your browser to http://dekiwiki/config/index.php you might get a warning about ps2pdf not installed. This is part of texlive pkg.
Posted 21:09, 9 Apr 2008
Installing on Ubuntu/Kubuntu 8.04 (beta), I had to install libmono-i18n2.0-cil in order to fix codepage errors when first accessing the wiki after completing configuration.
Posted 18:13, 17 Apr 2008
Thanks jtucker. I can confirm that on ubuntu server 8.04 I had to install libmono-i18n2.0-cil to get dekiwiki up and running. After a reboot all seems up and running now.
Posted 00:29, 9 May 2008
Viewing 9 of 9 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2