Kevin Leadbeater
Email / Jabber: See recaptcha.net
This page is a holding space for my upgrade notes whilst I upgrade from release 1.5.8 to 1.8.2.
These notes are based on the steps found here:
Upgrading MoinMoin to 1.8.2
Please note that you do NOT need 1.6.4 or 1.7.3 to migrate to 1.8.2. -- ThomasWaldmann 2009-04-26 13:03:39
First check existing versions running on the server: http://server/rscwiki?action=test
MoinMoin Diagnosis Release 1.5.8 Python version 2.4.3 (#1, Mar 14 2007, 18:51:08) [GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] Python installed to /usr
cd mkdir moin cd moin wget http://static.moinmo.in/files/moin-1.8.2.tar.gz tar xvzf moin-1.8.2.tar.gz cd mkdir backup-wiki cd backup-wiki/ tar cvzf _libs_MoinMoin1.5.8.tgz /usr/lib/python2.4/site-packages/MoinMoin/ tar cvzf _share_MoinMoin1.5.8.tgz /usr/share/moin/ tar cvzf _data_esowiki_MoinMoin1.5.8.tgz /esowiki/ tar cvzf _data_rscwiki_MoinMoin1.5.8.tgz /rscwiki/ tar cvzf _data_darmstadt_MoinMoin1.5.8.tgz /darmstadt/ rm -rf /usr/lib/python2.4/site-packages/MoinMoin/ /usr/share/moin/ cd ~/moin/moin-1.6.4/ python setup.py install --record=../install_1.6.4.log cd /rscwiki/cgi-bin/ mv moin.cgi moin.158 cp /usr/share/moin/server/moin.cgi . cd /esowiki/cgi-bin/ mv moin.cgi moin.158 cp /usr/share/moin/server/moin.cgi . cd /darmstadt/cgi-bin/ mv moin.cgi moin.158 cp /usr/share/moin/server/moin.cgi .
Change the 3 moin.cgi files so that:
sys.path.insert(0, '/rscwiki') sys.path.insert(0, '/esowiki') sys.path.insert(0, '/darmstadt')
Edit the Apache configuration file: /etc/httpd/conf/httpd.conf and replace the /wiki Alias with a new section:
Alias /moin_static182 "/usr/share/moin/htdocs" <Directory "/usr/share/moin/htdocs"> Order allow,deny Allow from all </Directory>
and correct the wrong paths for the 3 wiki instances
ScriptAlias /rscwiki "/rscwiki/cgi-bin/moin.cgi" <Directory /rscwiki> Order allow,deny Allow from all </Directory> ScriptAlias /esowiki "/esowiki/cgi-bin/moin.cgi" <Directory /esowiki> Order allow,deny Allow from all </Directory> ScriptAlias /darmstadt "/darmstadt/cgi-bin/moin.cgi" <Directory /darmstadt> Order allow,deny Allow from all </Directory>
cd /rscwiki rm -rf underlay/pages/ cp -r /usr/share/moin/underlay/ . cd /esowiki rm -rf underlay/pages/ cp -r /usr/share/moin/underlay/ . cd /darmstadt rm -rf underlay/pages/ cp -r /usr/share/moin/underlay/ .
cd /rscwiki mv wikiconfig.py wikiconfig.158 cp /usr/share/moin/config/wikiconfig.py . cd /esowiki mv wikiconfig.py wikiconfig.158 cp /usr/share/moin/config/wikiconfig.py . cd /darmstadt/ mv wikiconfig.py wikiconfig.158 cp /usr/share/moin/config/wikiconfig.py .
Edit each of the three new wikiconfig.py files, changing these values:
vi /rscwiki/wikiconfig.py sitename = u'Remote Support Centre Wiki' page_front_page = u"FrontPage" data_dir = '/rscwiki/data/' data_underlay_dir = '/rscwiki/underlay/' mail_smarthost = "exch-fe.terma.com" mail_from = u"Remote Support Wiki <nobody@terma.com>"
vi /esowiki/wikiconfig.py sitename = u'Old ESO Wiki' page_front_page = u"FrontPage" data_dir = '/esowiki/data/' data_underlay_dir = '/esowiki/underlay/' mail_smarthost = "exch-fe.terma.com" mail_from = u"Old ESO Wiki <nobody@terma.com>"
vi /darmstadt/wikiconfig.py sitename = u'Darmstadt Wiki' page_front_page = u"FrontPage" data_dir = '/darmstadt/data/' data_underlay_dir = '/darmstadt/underlay/' mail_smarthost = "exch-fe.terma.com" mail_from = u"Darmstadt Wiki <nobody@terma.com>"
chown -R apache.apache /rscwiki chmod -R ug+rwX /rscwiki chmod -R o-rwx /rscwiki chown -R apache.apache /esowiki chmod -R ug+rwX /esowiki chmod -R o-rwx /esowiki chown -R apache.apache /darmstadt chmod -R ug+rwX /darmstadt chmod -R o-rwx /darmstadt
/etc/init.d/httpd restart
Edit /etc/password to allow interactive logon for apache
#apache:x:48:48:Apache:/var/www:/sbin/nologin apache:x:48:48:Apache:/var/www:/bin/bash
chown apache.apache /usr/lib/python2.4/site-packages/MoinMoin/script/old/migration/152_to_1050300.py chmod 755 /usr/lib/python2.4/site-packages/MoinMoin/script/old/migration/152_to_1050300.py su - apache cd /darmstadt moin --config-dir=/darmstadt --wiki-url=leith.terma.com/darmstadt migration data vi /darmstadt/data/rename1.txt mv /darmstadt/data/rename1.txt /darmstadt/data/rename2.txt moin --config-dir=/darmstadt --wiki-url=leith.terma.com/darmstadt migration data /usr/lib/python2.4/site-packages/MoinMoin/script/old/migration/152_to_1050300.py /rscwiki/data/ cd /rscwiki moin --config-dir=/rscwiki --wiki-url=leith.terma.com/rscwiki migration data vi /rscwiki/data/rename1.txt mv /rscwiki/data/rename1.txt /rscwiki/data/rename2.txt moin --config-dir=/rscwiki --wiki-url=leith.terma.com/rscwiki migration data /usr/lib/python2.4/site-packages/MoinMoin/script/old/migration/152_to_1050300.py /esowiki/data/ cd /esowiki moin --config-dir=/esowiki --wiki-url=leith.terma.com/esowiki migration data vi /esowiki/data/rename1.txt mv /esowiki/data/rename1.txt /esowiki/data/rename2.txt moin --config-dir=/esowiki --wiki-url=leith.terma.com/esowiki migration data