HelpOnInstallingMoinMoin

Differences between revisions 2 and 3
Revision 2 as of 2006-07-12 21:43:32
Size: 407
Editor: taynzpxypro05
Comment:
Revision 3 as of 2006-10-27 06:09:03
Size: 2158
Editor: CPE001310050565-CM0014e8b55ec6
Comment: added steps. these should be grown to make better.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Varies somewhat from the setup described on [http://moinmoin.wikiwikiweb.de/] homepage, see [http://www.ubuntuforums.org/showthread.php?t=206853] Varies somewhat from the setup described on [http://moinmoin.wikiwikiweb.de/] homepage,
Line 3: Line 3:
Also note, all instances of the term "mywiki" should be updated to the wiki name you have chosen. This includes filenames! So, if your wiki instance is called "wiki1" then you should make changes to /etc/wiki1.py, NOT /etc/mywiki.py as the example shows. Also note, all instances of the term "mywiki" should be updated to the wiki name you have chosen. This includes filenames! So, if your wiki instance is called "wiki1" then you should make changes to /etc/wiki1.py, NOT /etc/mywiki.py as the example shows. You must also replace some instances of mywiki with your wiki's name (wiki1). (Such as in /etc/moin/mywiki.py, /etc/moin/farmconfig.py, and /etc/apache2/sites-available/default. Some files/folders need to be renamed like /etc/moin/mywiki.py, /usr/share/moin/mywiki)

= Steps to Install =
Derived from [http://www.ubuntuforums.org/showthread.php?t=206853]

== Get Software ==
Install MoinMoin and Apache2.

{{{
sudo apt-get install python2.4-moinmoin
sudo apt-get install apache2
}}}

== Create your own wiki called mywiki ==
Create a wiki called mywiki and set the permissions.

{{{
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
}}}

== Commission moin to find your new wiki ==
Insert into farmconfig.py, on a line after "wikis = ["

{{{
("mywiki", r".*"),
}}}


In mywiki.py change the data_dir line to

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

== Make apache ready for your wiki ==
Insert into {{{/etc/apache2/sites-available/default}}}
(inside of the "{{{<VirtualHost *>}}}" tag)

{{{
### 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
}}}

Restart apache to apply your changes:
{{{
sudo /etc/init.d/apache2 restart
}}}

== See if it works ==
Go to your wiki's homepage:

http://127.0.0.1/mywiki

Or try the test command:

http://127.0.0.1/mywiki?action=test


= Next Steps =
== Security ==
You should probably set up MoinMoin:PasswordProtectedEditing and investigate other security stuff: MoinMoin:SecurityPolicy.

Varies somewhat from the setup described on [http://moinmoin.wikiwikiweb.de/] homepage,

Also note, all instances of the term "mywiki" should be updated to the wiki name you have chosen. This includes filenames! So, if your wiki instance is called "wiki1" then you should make changes to /etc/wiki1.py, NOT /etc/mywiki.py as the example shows. You must also replace some instances of mywiki with your wiki's name (wiki1). (Such as in /etc/moin/mywiki.py, /etc/moin/farmconfig.py, and /etc/apache2/sites-available/default. Some files/folders need to be renamed like /etc/moin/mywiki.py, /usr/share/moin/mywiki)

Steps to Install

Derived from [http://www.ubuntuforums.org/showthread.php?t=206853]

Get Software

Install MoinMoin and Apache2.

sudo apt-get install python2.4-moinmoin
sudo apt-get install apache2

Create your own wiki called mywiki

Create a wiki called mywiki and set the permissions.

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

Commission moin to find your new wiki

Insert into farmconfig.py, on a line after "wikis = ["

("mywiki", r".*"),

In mywiki.py change the data_dir line to

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

Make apache ready for your wiki

Insert into /etc/apache2/sites-available/default (inside of the "<VirtualHost *>" tag)

### 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

Restart apache to apply your changes:

sudo /etc/init.d/apache2 restart

See if it works

Go to your wiki's homepage:

http://127.0.0.1/mywiki

Or try the test command:

http://127.0.0.1/mywiki?action=test

Next Steps

Security

You should probably set up PasswordProtectedEditing and investigate other security stuff: SecurityPolicy.

HelpOnInstallingMoinMoin (last edited 2011-02-23 04:54:11 by eth220-133)