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
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=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/install your mysql to 5.0.48
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
tar xvzf Deki_Wiki_1.8.2a_Hayes_source.tar.gz
mkdir /var/www/deki-hayes
cd Deki_Wiki_1.8.2a_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
***********************************
[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 2007年 10月 13日, 22:27に編集
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. 2007年 10月 15日, 16:20に編集