Moin Moin

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

Įdiegimas

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 skyrius pavadinimu „Įdiegimas“ sub-section in skyrius pavadinimu „HTTPD - Apache2 Žiniatinklio serveris“ section.

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 /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/moin/mywiki/data'

to

data_dir = '/usr/share/moin/mywiki/data'
[Pastaba]

Jeigu /etc/moin/mywiki.py byla neegzistuoja, jūs turite nukopijuoti /etc/moin/moinmaster.py bylą į /etc/moin/mywiki.py bylą ir padaryti aukščiau minėtą pakeitimą.

[Pastaba]

Jeigu jūs pavadinote Wiki my_wiki_name jūs turite įterpti eilutę „("my_wiki_name", r".*")“ į /etc/moin/farmconfig.py bylą po „("mywiki", r".*")“ eilutės.

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

Jūs turite pridėti šias eilutes prie /etc/apache2/sites-available/default bylos „<VirtualHost *>“ gairės viduje:

### moin
  ScriptAlias /mywiki "/usr/share/moin/mywiki/moin.cgi"
  alias /wiki "/usr/share/moin/htdocs"
  <Directory /usr/share/moin/htdocs>
  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 /etc/init.d/apache2 restart

Tikrinimas

You can verify the Wiki application and see if it works by pointing your web browser to the following URL:

http://localhost/mywiki

You can also run the test command by pointing your web browser to the following URL:

http://localhost/mywiki?action=test

For more details, please refer to the MoinMoin web site.