CentOS 5

This is an imperfect howto of an installation on CentOS 5.
It's based on the FC 6 installation guide.
There are still a few glitches to solve.

Install mono repository for fedora 5

cd /etc/yum.repos.d/
wget http://www.go-mono.com/download-stab...i386/mono.repo

Install mono

yum install mono-complete

Install mysql 5.0.48

As of  23/10/2007 CentOS 5 mysql is < than 5.0.43 and therefore has a bug (please see this thread in the forums)

As suggested by howlym add a new file utterramblings.repo in /etc/yum.repos/

Put below content to this new file:
***********************************
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$r...ver/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
**********************************

You will also need to import the RPM GPG Key:

**********************************

rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

**********************************

This will let you upgrade/install your mysql to 5.0.48+ (5.0.54 as-of 2008-01-18)

Be aware that this Repo contains updates to other packages, also, (httpd, etc).   More info on what it may contain can be found at the authors site: http://www.jasonlitka.com/yum-repository/

Install the other prerequisites

yum install httpd mysql-server php php-pear php-mysql php-gd php-curl php-mbstring ImageMagick wv links pdftohtml mysql-client
pear install Cache_Lite

Configure services

/etc/init.d/mysqld start
/etc/init.d/httpd start
/sbin/chkconfig --level 35 httpd on
/sbin/chkconfig --level 35 mysqld on

Set mysql root's password

mysql -u root -e "set password = password('your mysql password');"

Create /var/www/.wapi for mono

mkdir /var/www/.wapi
chown apache /var/www/.wapi

Edit /etc/php.ini and change the following parameters


memory_limit = 128M
post_max_size = 64M
upload_max_filesize = 64M

Change the shell for the apache user. Edit /etc/passwd and change this:


apache:x:48:48:Apache:/var/www:/sbin/nologin

to:

apache:x:48:48:Apache:/var/www:/bin/bash

Install Deki Wiki

mkdir /source
cd /source
wget http://www.mindtouch.com/s/source.php
tar xvzf Deki_Wiki_1.8.2b_Hayes_source.tar.gz
mkdir /var/www/deki-hayes
cd Deki_Wiki_1.8.2b_Hayes_source
cp -r web/* /var/www/deki-hayes/
service httpd restart

Edit the config/dekihost init script.

Change the following values to match your configuration:

# path to your wiki
DEKI_PATH=/var/www/deki-hayes

# this should match your Apache ServerName directive
DEKI_SERVERNAME=dekiwiki.example.com

# Then change the start() and stop() functions so they look like this:

start(){
su apache $DEKI_PATH/bin/mindtouch.host.sh start
}
stop(){
su apache $DEKI_PATH/bin/mindtouch.host.sh stop
}

Autostart dekiwiki

cp config/dekihost /etc/init.d/
ln -s /etc/init.d/dekihost /etc/rc3.d/S86dekihost
ln -s /etc/init.d/dekihost /etc/rc5.d/S86dekihost

Create a log file

touch /var/log/deki-api.log
chown apache /var/log/deki-api.log

Configure Apache to serve up the wiki

Modify /etc/httpd/conf/httpd.conf (or wherever your virtual servers are configured) to include:

NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
ServerName dekiwiki.example.com

DocumentRoot "/var/www/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 %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]

# deki-api uses encoded slashes in query parameters so AllowEncodedSlashes must be On
AllowEncodedSlashes On

# 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

</VirtualHost>

Change directory permissions

chown -R apache /var/www/deki-hayes
service httpd restart

Allow apache user to create the lucene index in /usr/local/var/

mkdir -p /usr/local/var
chown apache /usr/local/var

Run the web configuration

Go to the wiki home page and follow the configuration wizard

Post-configuration steps

After the web configuration has finished instead of the proposed course use this slightly modified one:

cd /var/www/deki-hayes/config
mkdir /etc/dekiwiki
chown apache /etc/dekiwiki
cp mindtouch.deki.startup.xml /etc/dekiwiki
cp LocalSettings.php /var/www/deki-hayes/
cp AdminSettings.php /var/www/deki-hayes/
cp mindtouch.host.sh /var/www/deki-hayes/bin/
/etc/init.d/dekihost start

Tag page
Viewing 3 of 3 comments: view all
if you have a mysql issue, you may create a new repos to your /etc/yum.repos/, put below content to this new file:
***********************************
[utterramblings]
name=Jasons Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL4/$basearch/
enabled=1
gpgcheck=0
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka"
**********************************

This will let you upgrade your mysql to 2.0.48 edited 22:27, 13 Oct 2007
Posted 22:26, 13 Oct 2007
Also, if you want dekiwiki indexs your doc, pdf, xls, and ppt files, you have to install these rpms to your system:

pdf2text
html2text
ppthtml
wvText
http://rpm.pbone.net/index.php3/stat/4/idpl/4910896/com/wv-1.2.4-2.fc8.x86_64.rpm.html

you may install rpmforge to enhance your yum repos. edited 16:20, 15 Oct 2007
Posted 22:31, 13 Oct 2007
If you're on CentOS release 5, SElinux and/or iptables may give you problems. The Deki install will NOT work unless you run this:

setsebool -P httpd_can_network_connect=1

This allows apache to make network connections. That cost me a couple hours of troubleshooting!
Posted 21:01, 29 Jan 2008
Viewing 3 of 3 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08