Differences between revisions 1 and 2
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
- Installing moin-1.8.5 on CentOS 5 = Setting Up Wiki on Centos 5.3 =
Line 3: Line 3:
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
== Prerequisites ==
Line 18: Line 5:
---- Details:  * version of [[http://moinmo.in/MoinMoinDownload|MoinMoin]] is 1.8.5
 * installed python version from Centos distribution is: 2.4.3
 * httpd user/group: apache/drawmgt
Line 20: Line 9:
- Check python is working: == Details ==
Line 22: Line 11:
   python -V  * Check python is working:
{{{
   $ python -V
Line 24: Line 15:
}}}
Line 25: Line 17:
- Unpack and install the software  * Unpack and install [[http://moinmo.in/MoinMoinDownload|MoinMoin]] as '''normal user'''
{{{
    mkdir -p ~/work/MoinMoin/tmp
    cd ~/work/MoinMoin/tmp
    tar xvzf moin-1.8.5.tar.gz
}}}
Line 27: Line 24:
  as ntibor  * The installation doc can be find in directory <<BR>>
    moin-1.8.5/docs
Line 29: Line 27:
    cd /home/ntibor/work/MoinMoin/tmp
    tar xvzf moin-1.8.5.tar.gz

    cd moin-1.8.5/docs

    Install DOC:
 * The installation doc can be viewed in browser <<BR>>
Line 147: Line 140:
 * apache configuration directory is /etc/httpd/conf
- 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

Setting Up Wiki on Centos 5.3

Prerequisites

  • version of MoinMoin is 1.8.5

  • installed python version from Centos distribution is: 2.4.3
  • httpd user/group: apache/drawmgt

Details

  • Check python is working:

   $ python -V
   Python 2.4.3
  • Unpack and install MoinMoin as normal user

    mkdir -p ~/work/MoinMoin/tmp
    cd ~/work/MoinMoin/tmp
    tar xvzf moin-1.8.5.tar.gz

- 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}
      export USER=apache export GROUP=drawmgt
    Setup as root:
    • 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

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

    </Directory>

    <Directory /home/wiki/wiki/cgi-bin>

    </Directory> Alias /moin_static185 /usr/local/share/moin/htdocs

    ScriptAlias /dev/wiki /home/wiki/wiki/cgi-bin/moin.cgi :x

- Setup wikiconfig.py

  • cd /home/wiki/wiki cp wikiconfig.py wikiconfig.py-ORIG vi wikiconfig.py # Change:
    • data_dir = './data/' data_underlay_dir = './underlay/'
    # To:
    • data_dir = '/home/wiki/wiki/data/' data_underlay_dir = '/home/wiki/wiki/underlay/'
    :x

- Bounce apache

  • /etc/rc.d/init.d/httpd restart

- Path to the wiki: Based on the ScriptAlias defined in httpd.conf

  • apache configuration directory is /etc/httpd/conf

- 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

Centos_5_3_Wiki (last edited 2009-10-20 17:22:12 by 183-56-147)

Copyright 2008, SoftXS GmbH, Switzerland