The issue
There's a new release and you want to install it but you don't want to lose data.This assumes you have your current installation as “/var/www/html/kontrollbase” – substitute your own if different.
The method
- download the latest release from the repo: http://code.google.com/p/kontrollbase/
- unpack the tar.gz file into the web directory
- check the announcement forum to see if you need to add anything to the config files we'll be copying below.
- move the current installation directory to a .old extension
- symlink the new kontrollbase directory to /var/www/html/kontrollbase so that future upgrades are only a matter of changing a symlink
- copy the config files into the new installation directory's appropriate sub-directory
- ensure webserver process ownership of the new directory and sub-directories
- login to the app to make sure everything is good
cd /var/www/html
wget http://kontrollbase.googlecode…..XXX.tar.gz
tar xvzf kontollbase-revNEW.tar.gz
mv kontrollbase kontrollbase.old
ln -s /var/www/html/kontrollbase-revXXX /var/www/html/kontrollbase
cp kontrollbase.old/system/application/config/config.php kontrollbase/system/application/config/
cp kontrollbase.old/system/application/config/database.php kontrollbase/system/application/config/
chown -R apache:apache kontrollbase