215
2. Moin Moin
MoinMoin is a Wiki engine implemented in Python, based on the PikiPiki Wiki engine, and licensed under the GNU GPL.
2.1. Installation
To install MoinMoin, run the following command in the command prompt:
sudo apt-get install python-moinmoin
You should also install apache2 web server. For installing apache2 web server, please refer to Section 1.1, “Installation” [p. 187] sub-section in Section 1, “HTTPD - Apache2 Web Server” [p.
187] section.
2.2. Configuration
For configuring your first Wiki application, please run the following set of commands. Let us assume that you are creating a Wiki named mywiki:
cd usrsharemoin sudo mkdir mywiki
sudo cp -R data mywiki sudo cp -R underlay mywiki
sudo cp servermoin.cgi mywiki sudo chown -R www-data.www-data mywiki
sudo chmod -R ug+rwX mywiki sudo chmod -R o-rwx mywiki
Now you should configure MoinMoin to find your new Wiki mywiki. To configure MoinMoin, open
etcmoinmywiki.py
file and change the following line:
data_dir = orgmywikidata
to
data_dir = usrsharemoinmywikidata
Also, below the data_dir option add the data_underlay_dir:
data_underlay_dir=usrsharemoinmywikiunderlay
If the
etcmoinmywiki.py
file does not exists, you should copy
usrsharemoin configwikifarmmywiki.py
file to
etcmoinmywiki.py
file and do the above mentioned change.
If you have named your Wiki as my_wiki_name you should insert a line “my_wiki_name, r.” in
etcmoinfarmconfig.py
file after the line “mywiki, r.”.
216 Once you have configured MoinMoin to find your first Wiki application mywiki, you should configure
apache2 and make it ready for your Wiki application. You should add the following lines in
etcapache2sites-availabledefault
file inside the “VirtualHost ” tag:
moin ScriptAlias mywiki usrsharemoinmywikimoin.cgi
alias moin_static193 usrsharemoinhtdocs Directory usrsharemoinhtdocs
Order allow,deny allow from all
Directory end moin
Once you configure the apache2 web server and make it ready for your Wiki application, you should restart it. You can run the following command to restart the apache2 web server:
sudo service apache2 restart
2.3. Verification
You can verify the Wiki application and see if it works by pointing your web browser to the following URL:
http:localhostmywiki
For more details, please refer to the MoinMoin
1
web site.
2.4. References
• For more information see the moinmoin Wiki
2
. • Also, see the Ubuntu Wiki MoinMoin
3
page.
1 http:moinmo.in 2 http:moinmo.in
3 https:help.ubuntu.comcommunityMoinMoin
217
3. MediaWiki