Moin Moin

MoinMoin is a wiki engine implemented in Python, based on the PikiPiki Wiki engine, and licensed under the GNU GPL.

Installation

Pour installer MoinMoin, lancez la commande suivante dans un terminal :

sudo apt install python-moinmoin

You should also install apache2 web server. For installing the apache2 web server, please refer to Installation sub-section in HTTPD - serveur web Apache2 section.

Configuration

To configure your first wiki application, please run the following set of commands. Let us assume that you are creating a wiki named mywiki:

cd /usr/share/moin
sudo mkdir mywiki
sudo cp -R data mywiki
sudo cp -R underlay mywiki
sudo cp server/moin.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 /etc/moin/mywiki.py file and change the following line:

data_dir = '/org/mywiki/data'

en

data_dir = '/usr/share/moin/mywiki/data'

Ajoutez aussi data_underlay_dir sous l'option data_dir :

data_underlay_dir='/usr/share/moin/mywiki/underlay'

If the /etc/moin/mywiki.py file does not exist, you should copy /usr/share/moin/config/wikifarm/mywiki.py file to /etc/moin/mywiki.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 /etc/moin/farmconfig.py file after the line « ("mywiki", r".*") ».

Once you have configured MoinMoin to find your first wiki application, mywiki, you should configure apache2 and make it ready for your wiki.

You should add the following lines in /etc/apache2/sites-available/000-default.conf file inside the « <VirtualHost *> » tag:

### moin
  ScriptAlias /mywiki "/usr/share/moin/mywiki/moin.cgi"
  alias /moin_static<version> "/usr/share/moin/htdocs"
  <Directory /usr/share/moin/htdocs>
  Order allow,deny
  allow from all
  </Directory>
### end moin

The version in the above example is determined by running:

$ moin --version

If the output shows version 1.9.7, your second line should be:

alias /moin_static197 "/usr/share/moin/htdocs"

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 systemctl restart apache2.service

Vérification

Vous pouvez vérifier le bon fonctionnement de votre application Wiki en saisissant l'URL suivante dans votre navigateur Web :

http://localhost/mywiki

Référez-vous au site web MoinMoin pour de plus amples informations.

Références