Ubuntu 6.06-386 server LTS

Table of contents
No headers


UPDATE JULY 30TH 2007:  Deki Wiki Hayes may not work on Ubuntu 6.06 because it requires a later version of the mono libraries. You may have to do a dist-upgrade to get your install to work.

To make dekiWiki work on ubuntu I had to add a thing to the main installation guide.

  1. Edit /etc/apt/sources.list and enable the "universe" repositories section (there is no need to enable the src repository).
  2. Update the available packages by doing apt-get update
  3. These are all the packages you'll need:
    apt-get install apache2 mysql-server php5 php5-cli php-pear php5-mysql libapache2-mod-php5 php4-imagick php5-mcrypt php5-mhash php4-xslt imagemagick wv pdftohtml pwgen make pdftohtml html2text aspell links mono mono-classlib-1.0 mono-classlib-2.0 mono-mcs libmono0 libmono-cecil0.4-cil libmono-sqlite1.0-cil libmono-sqlite2.0-cil
  4. Please install also pear XML_RPC package:
    pear install XML_RPC
    pear install Cache_Lite
  5. Open dekiwiki-current/dekiwiki/extensions/MWSearchUpdater.php and change the 5th line from /usr/share/pear to /usr/bin/pear
  6. All the other stuff goes fine following the main suggestions.
  7. Make sure that you set the owner of the /var/www/<your site name> to be the web user
  8. Disable the default apache site with
    # a2dissite 000-default

I'm going to add my two cents in here.

I couldn't get all of the required mono files installed with the 4 default Dapper repositories so I upgraded to Edgy 6.10.  After that all of the mono files were available and I just followed the main install docs.  I did have to follow the above suggestion about the pear file though.

I found that the suggested mwlucene startup script didn't quite go far enough.  It would not stop all of the instances related to MWUpdateDaemon.  I modified the stop and start part of /etc/init.d/mwlucene script to look like this:

start(){

        touch /var/log/mwdaemon.log

        touch /var/log/mwupdatedaemon.log

        /usr/local/bin/MWDaemon >> /var/log/mwdaemon.log 2>&1 &

if [ ! -d /var/run/mwsearch ]

        then

                mkdir /var/run/mwsearch

        fi

        echo "$!" > /var/run/mwsearch/mwdaemon.pid

        /usr/local/bin/MWUpdateDaemon >> /var/log/mwdaemon.log 2>&1 &

        echo "$!" > /var/run/mwsearch/mwupdatedaemon.pid

        return $?

}

stop(){

        # Fixme

      mwpid=`cat /var/run/mwsearch/mwupdatedaemon.pid`

        for i in `ps -ef | grep $mwpid | egrep -v grep | awk '{print $2}' | sort -nr`

        do

        kill $i

        done

        /bin/kill `cat /var/run/mwsearch/mwdaemon.pid  2> /dev/null ` > /dev/null 2>&1

        /bin/kill `cat /var/run/mwsearch/mwupdatedaemon.pid  2> /dev/null ` > /dev/null 2>&1

        ret=$?

        return $ret

}

With this, everything starts and stops correctly.

I also found that the paths in the default /etc/mwsearch.conf file were not correct.  They pointed to some non-existent /var/mks/bin directory.  I changed them appropriately. Then I wanted to index other types of files besides the default .doc and .pdf e.g. .ppt and .xls.  So I added a couple other utilities to my system and added them to /etc/mwsearch.conf.  That portion of my mwsearch.conf file now looks like this (all one line, of course):

converter=doc=wvText pdf=/usr/local/bin/pdf2text xhtml=/usr/local/bin/html2txt html=/usr/local/bin/html2txt htm=/usr/local/bin/html2txt pl= c= h= inc= php= cs= txt= text= csv= xml= xsl= xslt= xls=/usr/local/bin/xls2txt ppt=/usr/local/bin/ppt2txt

You can see that I added are xls2txt and ppt2txt.  They are merely scripts that point to the real utilities.  These scripts look like this:

~$ cat /usr/local/bin/xls2txt

#! /bin/sh

xlhtml -te $1 |html2text -nobs -o $2

~$ cat /usr/local/bin/ppt2txt

#! /bin/sh

ppthtml $1 |html2text -o $2

Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08.1a