MoinMoin wiki


MoinMoin1.9.3 installation

$ cd /
$ sudo mkdir moinwiki
$ sudo chown apache:apache moinwiki
$ sudo usermod -G apache xxxx(user name)

Download moinmoin-1.9.3 and in download directory

$ tar xvf moin-1.9.3.tar.gz
$ cd moin-1.9.3
$ sudo python setup.py install --force --record=install.log --prefix='/usr/local' --install-data=/moinwiki

Installed directly:

wsgi test

Install wsgi and test

# yum install mod_wsgi.x86_64
$ cd /moinwiki/share/moin/server
$ python test.wsgi

Then open http://localhost:8000/ on web client.

Apache2 setting

Install apache

# yum install httpd.x86_64

and check run level

# chkconfig httpd on
# chkconfig --list | grep httpd

Edit /etc/httpd/conf/httpd.conf

DocumentRoot "/var/www/html" → DocumentRoot "/moinwiki/share/moin"
<Directory "/var/www/html"> → <Directory "/moinwiki/share/moin">

and add

#
#  MoinMoin WSGI configuration
#
# you will invoke your moin wiki at the root url, like http://servername/FrontPage:
WSGIScriptAlias /JGWwiki /moinwiki/share/moin/JGWwiki/moin.wsgi

WSGISocketPrefix /var/run/httpd/wsgi

# create some wsgi daemons - use these parameters for a simple setup
WSGIDaemonProcess moin user=apache group=apache processes=5 threads=10 maximum-requests=1000 umask=0007

# use the daemons we defined above to process requests!
WSGIProcessGroup moin

Alias /moin_static193/   "/moinwiki/share/moin/htdocs/"

and restart apache

# /etc/init.d/httpd restart

update old data

  1. Copy backup folder of moin to /moinwiki/share/ and
  2. Then,

    # cd /moinwiki/share/moin/JGWiki
    # cp ../config/wikiconfig.py .
    # cp ../server/moin.wsgi .
    # rm moin.cgi
  3. Edit moin.wsgi and add

    sys.path.insert(0, '/usr/local/lib/python2.6/site-packages')
    sys.path.insert(0, '/moinwiki/share/moin/JGWwiki')
  4. Edit wikiconfig.py and add or replace

    url_prefix_static = '/moin_static193'
    
    sitename = u'JGW Wiki'
    
    logo_string = u'<img src="%s/common/grp07_on.png" alt="JGW Logo">' % url_prefix_static
    
    page_front_page = u"FrontPage"
    
    superuser = [u"XxxxXxxx",u"XxxxXxxx",]
    
    acl_rights_before = u"XxxxXxxx:read,write,delete,revert,admin XxxxXxxx:read,write,delete,revert XxxxXxxx:read,write,delete XxxxXxxx:read,write,delete"
    
    acl_enable = 1
    
    acl_rights_default = u"MemberGroup:read,write All:read"
    
    tz_offset = 9.0
  5. Ownership and access level change

    $ cd /moinwiki/share
    $ sudo chown -R apache:apache moin
    $ chmod -R ug+rwX moin
    $ chmod -R o-rwX moin

KAGRA/Computers/InstallationNote/MoinMoin_CentOS (last edited 2014-10-10 16:07:02 by TakahiroYamamoto)