How to Intstall moin wiki in Linux

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

MoinMoin is an advanced, easy to use and extensible WikiEngine with a large community of users. Said in a few words, it is about collaboration on easily editable web pages, it is basesdon Python language and give more posiblities then an normale wiki .

First we will have to download pyhton .

[root@localhost ~]# python -V

Python 2.4.3

now you have to download and install Moin .

 yum  install moin

 

Create a directory :

mkdir /var/www/mywiki/cgi-bin

cp -a /usr/share/moin/{data,underlay} /var/www/mywiki

cp -a /usr/share/moin/server/moin.cgi /var/www/mywiki/cgi-bin

cp -a /usr/share/moin/config/wikiconfig.py /var/www/mywiki/cgi-bin

chown -R apache:apache /usr/share/moin/{data,underlay}

make new httpd conf file

vi /etc/httpd/conf.d/mywiki.conf

add this

ScriptAlias /mywiki "$DESTDIR/cgi-bin/moin.cgi"

Options Indexes FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all

# To use mod_pyton disable all above, enable the following lines and
# also change wikiconfig.py to have absolute paths for data/underlay dirs.
#
# SetHandler python-program
# PythonPath "['$DESTDIR/cgi-bin'] + sys.path"
# PythonHandler MoinMoin.request::RequestModPy.run
#
Alias /wiki/ "/usr/share/moin/htdocs/"

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

save and exit

then

edit /etc/httpd/conf/httpd.conf 

to include “AddHandler cgi-script .cgi”

and edit wikiconfig.py add the good name page and uncomment the front page

edit /var/www/mywiki/cgi-bin/wikiconfig.py

restart your apache

service httpd restart

Voila :)

go to htp://ip/mywiki or http://hostname/mywiki

For questions please refer to our Q/A forum at : http://ask.unixmen.com/


Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0