| Applies to | MindTouch 8.08 or later | License | All versions |
|---|---|---|---|
| Operating System | Linux | Documentation Types | Setup |
| Community | |||
This guide assumes you are upgrading a source code install from v.8.08 to MindTouch 2009. For package upgrades, look at this documentation. If you are upgrading from an earlier version, please visit our Developer community to find your appropriate guide.
Type the following commands to create the backup directory and back up your attachments:
# mkdir ~/deki_backup # cd /var/www/dekiwiki/ # tar cvzpf ~/deki_backup/attachments.tar.gz /var/www/dekiwiki/attachments
Enter the following commands to back up the files that MindTouch uses to determine settings:
# cp /var/www/dekiwiki/LocalSettings.php ~/deki_backup # cp /etc/dekiwiki/mindtouch.deki.startup.xml ~/deki_backup # cp /etc/dekiwiki/mindtouch.host.conf ~/deki_backup
Note: If you have any site modifications such as custom skins, CSS, or resource file modifications, they must be backed up now as well and restored after the upgrade.
Use the following line to back up the MySQL database:
# mysqldump -u<user> -p<password> wikidb > ~/deki_backup/wikidb.sql
Download the MindTouch 2009 build from one of the following sources:
Type the following lines to expand and move the files to their correct location:
# cd ~/ # tar xfvz deki-09.02.00.tar.gz # cd deki-09.02.00 # rm -rf /var/www/dekiwiki # mkdir /var/www/dekiwiki # cp -r web/* /var/www/dekiwiki
Type the following commands to restore the attachments and settings files:
# cd ~/deki_backup # cp LocalSettings.php /var/www/dekiwiki/ # tar xvzpf attachments.tar.gz -C /var/www/dekiwiki/ # cp mindtouch.deki.startup.xml /etc/dekiwiki/ # chown -R www-data /var/www/dekiwiki/
# cd /var/www/dekiwiki/maintenance # php update-db.php
Enter the following lines to clear the skins cache:
# cd /var/www/dekiwiki/skins/common/cache/ # rm -rf cache-*
For MindTouch 2009, the deki folder must be added a RewriteRule exclusion. Be sure that your RewriteRule exclusions look like this:
RewriteCond %{REQUEST_URI} !^/(@api|editor|skins|config|deki)/
You can also remove any references to /@gui/ in your rewrite rules. When in doubt, refer to our Apache configuration for MindTouch 2009 and try to match it up as closely as possible.
Then restart apache:
/etc/init.d/apache2 restart
# /etc/init.d/dekiwiki restart
Launch a web browser, and clear the cache. Connect to your wiki by typing in http://IP_ADDRESS, where IP_ADDRESS is the IP of your linux machine. Click on Tools, then About to verify that you are using MindTouch 2009.
In the wiki, click on Tools, then Control Panel, and then Site Settings. Click Rebuild Index to re-index the wiki.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by
Can I do that directly or do need to go through some version 9?
Any documentation on this kind of upgrade, or can I just apply the same approach as above.