Installing MoinMoin
Fedora 9
Newer versions of MoinMoin just don't seem to want to run on Fedora 9 and since I have hardware problems with the computer that this wiki is on I'm sticking with Fedora 9 for the time being. That said, I'm running MoinMoin version moin-1.5.8-2.fc8.noarch along with mod_python-3.3.1-7.i386. This combination works.
To install and configure MoinMoin start by installing the .rpm file.
sudo rpm -ivh moin-1.5.8-2.fc8.noarch
Then use yum to install mod_python.
sudo yum install mod_python
Once those are installed, create some folders and copy some files into those folders.
mkdir -p /var/www/moin/mywiki cp -R /usr/share/moin/data /var/www/moin/mywiki cp -R /usr/share/moin/underlay /var/www/moin/mywiki cp -R /usr/share/moin/config/wikiconfig.py /var/www/moin/mywiki
Change some permissions ...
chown -R apache:apache /var/www/moin chmod -R ug+rwX /var/www/moin chmod -R o-rwx /var/www/moin
Create a file, moin.conf ...
sudo gedit /etc/httpd/conf.d/moin.conf
Add some data to the file ...
Alias /wiki/ "/usr/share/moin/htdocs/" <Location /mywiki> SetHandler python-program # Add the path of your wiki directory PythonPath "['/var/www/moin/mywiki'] + sys.path" PythonHandler MoinMoin.request::RequestModPy.run # Location value must match the Apache Location value! PythonOption Location /mywiki </Location>
Edit / Configure wikiconfig.py ...
sudo gedit /var/www/moin/mywiki/wikiconfig.py
There are only a few changes that need to be made. Change the name of the site to whatever you like.
# Site name, used by default for wiki name-logo [Unicode] sitename = u'The title of my new Wiki'
Change the data_dir to reflect an actual location on the computer.
# Where your mutable wiki pages are. You want to make regular # backups of this directory. data_dir = '/var/www/moin/mywiki/data/'
Change the data_underlay setting to reflect an actual location on the computer.
# Where read-only system and help page are. You might want to share # this directory between several wikis. When you update MoinMoin, # you can safely replace the underlay directory with a new one. This # directory is part of MoinMoin distribution, you don't have to # backup it. data_underlay_dir = '/var/www/moin/mywiki/underlay/'
Make a few changes to the apache configuration
sudo vi /etc/httpd/conf/httpd.conf
Change the ServerName to something that exists. In my case this is http://www.johnson.homelinux.net:80.
Change the DocumentRoot to "/var/www/moin/"
Change the <Directory> to <Directory "/var/www/moin">
Restart httpd
sudo /sbin/service httpd start
Browse to http://localhost/mywiki.
Return home
