These instructions are a slightly modified version of the the Installing MoinMoin on Ubuntu howto, which you can find here: https://wiki.ubuntu.com/HelpOnInstallingMoinMoin
Preliminaries
Install RpmForge from rpmfind.com, which allows you to install moinmoin with yum
- yum install moinmoin
- yum install apache2
Setting up MoinMoin
Substitute wikiname with the name for your wiki:
cd /usr/share/moin sudo mkdir wikiname sudo cp -R data wikiname sudo cp -R underlay wikiname sudo cp server/moin.cgi wikiname sudo chown -R apache:apache wikiname sudo chmod -R ug+rwx wikiname sudo chmod -R o-rwx wikiname sudo mkdir /etc/moin sudo cp /usr/share/moin/config/wikifarm/farmconfig.py /etc/moin sudo cp /usr/share/moin/config/wikifarm/mywiki.py /etc/moin
Edit /etc/moin/farmconfig.py, and after the line "wikis = [" add your "wikiname". For a single instance wiki, this would entail renaming the following line from:
("mywiki", r".*"),to
("wikiname", r".*"),Copy the /etc/moin/mywiki.py file to /etc/moin/wikiname.py
sudo cp /etc/moin/mywiki.py /etc/moin/wikiname.py
Edit the /etc/moin/wikiname.py and change all instances of mywiki to wikiname. In addition to this, change the data dir to point to your local installation of MoinMoin.
data_dir = '/usr/share/moin/wikiname/data'
Make Apache Ready for your Wiki
Insert into /etc/httpd/conf/httpd.conf the following:
### moin ScriptAlias /wikiname "/usr/share/moin/wikiname/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.
Configuring the MoinMoin installation
edit /usr/share/moin/config/wikiconfig.py:
- Change the sitename variable to your site's name
- Change data_dir to:
data_dir = './data/'
- Change data_underlay_dir to:
data_underlay_dir = './underlay/'
edit /usr/share/moin/wikiname/moin.cgi:
* Change the line starting with sys.path.insert to read:
sys.path.insert(0, '/usr/share/moin/config/')
See if it works
Go to your wiki's homepage:
Or try the test command:
