Это старая версия документа.


Moin Moin

MoinMoin - это Wiki движок, реализованный на Pithon, основанный на Wiki движке PikiPiki и лицензированный под GNU GPL.

Установка

Для установки MoinMoin, запустите следующую команду из командной строки:

sudo apt-get install python-moinmoin

Кроме этого вам придется установить интернет сервер apache2. Для установки сервера apache2, обратитесь, пожалуйста, к соответствующему разделу главы HTTPD - Apache2 интернет сервер.

Настройка

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

to

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

Also, below the data_dir option add the data_underlay_dir:

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

If the /etc/moin/mywiki.py file does not exists, 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 application.

You should add the following lines in /etc/apache2/sites-available/default file inside the “<VirtualHost *>” tag:

### moin

ScriptAlias /mywiki "/usr/share/moin/mywiki/moin.cgi"
alias /moin_static193 "/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 service apache2 restart

Проверка

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

http://localhost/mywiki

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

Ссылки

  For more information see the moinmoin Wiki.
  Also, see the Ubuntu Wiki MoinMoin page.