Google Plus

How to Intstall moin wiki in Linux

Written by Mel Kham on . Posted in Linux tutorials

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

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Snake

|

Wow, great. That’s what i’m waiting for too. I want to make DC with LDAP ( Active Directory alternative) and SAMBA on Ubuntu. :-)

Blawer

|

Thanks!!!!!!!!!!!!!!!!!! you rules!!! all the other “help” in google are useless… yours was very helpful. Thanks again

piCool

|

Great ! we have another another master trick :-)

Yilmaz Ulugtekin

|

Just delete the space after the slash (/) it will work.

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .