To upgrade non-VM releases of Deki Wiki, please use the following steps:

Backup your attachments

mkdir ~/deki_backup
cd /var/www/deki-hayes/
tar cvzpf ~/deki_backup/attachments.tar.gz attachments 

Backup your LocalSettings.php and AdminSettings.php files

cp LocalSettings.php AdminSettings.php ~/deki_backup

Backup your mindtouch.host.sh script and mindtouch.deki.startup.xml

 

cp ./bin/mindtouch.host.sh ~/deki_backup
cp ./mindtouch.deki.startup.xml ~/deki_backup

NOTE: If you're running on Windows the dekihost startup script is named mindtouch.host.bat

cp mindtouch.host.bat ~/deki_backup

 

Backup your MySQL Database

mysqldump -u<user> -p<pass> <dbname> > ~/deki_backup/wikidb.sql

Delete old code

rm -rf /var/www/deki-hayes

Install new package

Note that the filename used ("Deki_Wiki_Hayes_1.8.1d.tar.gz") will be different depending on which version of Deki Wiki you are upgrading.

cd ~/
tar xfvz Deki_Wiki_Hayes_1.8.1d.tar.gz
cd Deki_Wiki_Hayes_1.8.1.d/
mkdir /var/www/deki-hayes
cp -r web/* /var/www/deki-hayes

Restore files

cd ~/deki_backup
cp LocalSettings.php AdminSettings.php /var/www/deki-hayes/
tar xvzpf attachments.tar.gz -C /var/www/deki-hayes/
cp mindtouch.host.sh /var/www/deki-hayes/bin/
cp mindtouch.deki.startup.xml /var/www/deki-hayes/
chown -R www-data /var/www/deki-hayes/

NOTE: If you're running on Windows the dekihost startup script is named mindtouch.host.bat

cp mindtouch.host.bat /var/www/deki-hayes/bin/

Run DB update script

cd /var/www/deki-hayes/maintenance
php update-db.php

NOTE: For Windows, if 'php' is not a defined win program, find where your 'php.exe' is, and then use it to run update-db.php file

Clean up the skins cache folder

Please make sure your skins/common/cache folder can be written by the apache user. 

cd /var/www/deki-hayes/skins/common/cache/
rm -rf cache-*

Start dekihost

/etc/init.d/dekihost restart

NOTE: If you're running windows, launch the mindtouch.host.bat script instead of the command above

Verify

Launch a web browser and connect to your wiki!

Tag page
Viewing 7 of 7 comments: view all
Ps: While updrading from 1.8.1c to 1.8.2, I found that mindtouch.deki.startup.xml needs to be copied from old install to new one as well, hence have added this to above
Posted 23:41, 1 Oct 2007
Included the line bellow due to some permission problems when I reinstalled the 1.8.2 tar file and this solved it:

chown -R www-data ./
Posted 15:49, 5 Oct 2007
Slight error in the command to copy the mindtouch.deki.startup.xml file. It's located in ./config/, not ./
Posted 14:32, 26 Dec 2007
Yes - I got the same problem for "cp ./mindtouch.deki.startup.xml ~/deki_backup"

cp: cannot stat `./mindtouch.deki.startup.xml': No such file or directory

However I found mine in /etc/dekiwiki/mindtouch.deki.startup.xml


Posted 05:43, 4 Jan 2008
There was an error after restoring the files.
the chown comand owned the backup-folder to www-data instead of the deki-hayes folder.
Ive corrected the command.

This should fix problems like a non-working tools menu after the installation.
Posted 13:11, 4 Jan 2008
I am running on xampp and windows server 2003. And I think I have found a bug. When I want to delete my old deki installation before installing the new package, I am not able to delete the .dll files in ../web/bin. I have stopped the dekihost but it was still listed in the windows task manager's processes. After stopping the dekihost there, I was able to delete the .dll files.
Posted 13:16, 11 Feb 2008
From where I can download Deki_Wiki_Hayes_1.8.1d.tar.gz ?
In sf.net I fond version c i.e. - Deki_Wiki_Hayes_1.8.1c.tar.gz
Posted 19:35, 25 Feb 2008
Viewing 7 of 7 comments: view all
You must login to post a comment.