for historical purposes here is how I got my wiki set up
all commands were performed as root su -
each line executed
Code:
mkdir /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
set the permissions for the directories
Code:
chown -R apache:apache /var/www/moin
chmod -R ug+rwX /var/www/moin
chmod -R o-rwx /var/www/moin
create a moin.conf in the httpd directory like so...
Code:
gedit /etc/httpd/conf.d/moin.conf
add the following to the file
Quote:
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>
|
Open the Moin configuration file you copied over earlier (wikiconfig.py) and edit it. You only have to modify it in a few places ( in red need to be adjusted to your configuration):
# Site name, used by default for wiki name-logo [Unicode]
sitename = u'
The title of my new Wiki'
# Where your mutable wiki pages are. You want to make regular
# backups of this directory.
data_dir = '
/var/www/moin/mywiki/data/'
# 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/'
finally restart httpd
Code:
/sbin/service httpd restart
Browse to
http://localhost/mywiki
configure away !!