- Installing moin-1.8.5 on CentOS 5
It is nearly the same as "Development Wiki Installation" but: access home from httpd (apache), : - python version is: 2.4.3 - there is no error at runnig 'python setup.py install' - extra steps are needed to access home from httpd (apache) because od the
- context security system of SELinux
- Other user/group for Wiki instnce:
- export USER=apache; export GROUP=drawmgt
- Apache configuration directory is NOT /usr/local/etc/apache2
- cd /etc/httpd/conf vi httpd.conf
- In last line '/e/vol001' is unnecessary
- Bounce apache: /etc/rc.d/init.d/httpd restart - Path to wiki: http://localhost/dev/wiki
Details:
- Check python is working:
- python -V Python 2.4.3
- Unpack and install the software
- as ntibor
- cd /home/ntibor/work/MoinMoin/tmp tar xvzf moin-1.8.5.tar.gz cd moin-1.8.5/docs Install DOC:
file:///home/ntibor/work/MoinMoin/tmp/moin-1.8.5/docs/INSTALL.html
- cd /home/ntibor/work/MoinMoin/tmp/moin-1.8.5 python setup.py install --prefix='/usr/local' --record=install.log
- cd /home/ntibor/work/MoinMoin/tmp tar xvzf moin-1.8.5.tar.gz cd moin-1.8.5/docs Install DOC:
- Test the installation:
- [ntibor@centos1 moin-1.8.5]$ python Python 2.4.3 (#1, Jul 27 2009, 17:57:39) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> import MoinMoin >>>
- Create a wiki instance:
- Setup a wiki called 'wiki', located in /home/wiki
- Configuration variables:
- export PREFIX=/usr/local export SHARE=${PREFIX}/share/moin export WIKILOCATION=/home/wiki export INSTANCE=wiki
- # full path is ${WIKILOCATION}/${INSTANCE}
- cd /home mkdir wiki chmod go+w wiki cd $WIKILOCATION mkdir $INSTANCE # directory for this instance cp -R $SHARE/data $INSTANCE # template data directory cp -R $SHARE/underlay $INSTANCE # underlay data directory cp $SHARE/config/wikiconfig.py $INSTANCE # copy wiki cfg sample file
chown -R $USER:$GROUP $INSTANCE chmod -R ug+rwX $INSTANCE # USER.GROUP may read and write chmod -R o-rwx $INSTANCE # everybody else is rejected
- export PREFIX=/usr/local export SHARE=${PREFIX}/share/moin export WIKILOCATION=/home/wiki export INSTANCE=wiki
- Apache/Moin configuration (based on moin.cgi):
- cd $WIKILOCATION/$INSTANCE mkdir cgi-bin cp $SHARE/server/moin.cgi cgi-bin
chown -R $USER:$GROUP cgi-bin chmod -R ug+rx cgi-bin chmod -R o-rwx cgi-bin vi cgi-bin/moin.cgi # Add the following lines (after the 'import sys' line) sys.path.insert(0,'/home/wiki/wiki') sys.path.insert(0, '/usr/local/lib/python2.4/site-packages') :x cd /etc/httpd/conf vi httpd.conf # -- Moin Moin V1.8.5 Test Wiki
<Directory /usr/local/share/moin/htdocs>
- Options
AllowOverride AuthConfig Limit Order allow,deny Allow from all
</Directory>
<Directory /home/wiki/wiki/cgi-bin>
- Options None
AllowOverride AuthConfig Limit Order allow,deny Allow from all
</Directory> Alias /moin_static185 /usr/local/share/moin/htdocs
ScriptAlias /dev/wiki /home/wiki/wiki/cgi-bin/moin.cgi :x
- Options
- Setup wikiconfig.py
- cd /home/wiki/wiki cp wikiconfig.py wikiconfig.py-ORIG vi wikiconfig.py # Change:
- data_dir = './data/' data_underlay_dir = './underlay/'
- data_dir = '/home/wiki/wiki/data/' data_underlay_dir = '/home/wiki/wiki/underlay/'
- Bounce apache
- /etc/rc.d/init.d/httpd restart
- Path to the wiki: Based on the ScriptAlias defined in httpd.conf
- The basic wiki seems to work.