Update-Routine
From MapbenderWiki
Contents |
[edit]
Workgroup Update-Routine
People involved in this work group:
- Developer : User: Siddharth Prakash Singh
- Mentor: User: Christoph Baudson
[edit]
Status
This project is a part of Google Summer Of Code 2008. The script is almost complete. But it is not yet ready to be distributed with a stable Mapbender release. The script may come up with the next release of Mapbender, version 2.6 . The current version of the script has been tested on Linux system. There might be some problem on a Windows(TM) system.
The Update Routine is available here.
[edit]
Requirements
- PHP 5.1.0 or greater
- PHP CLI (Command Line Interface)
- PostgreSQL 8.1.x or greater / MySQL 4.8.x
- A Mapbender Installation (which has not been customized)
[edit]
Instructions
In this whole tutorial, it is assumed that you have downloaded the new Mapbender version in your home directory ('~'), and your old Mapbender version is installed in the directory '/var/www/mapbender' . Replace these path in the following instructions according to your situation.
- Open a terminal and type in the following:
$ cd ~/mapbender/update/ $ php update.php
- Then the script will ask you the path to the old Mapbender installation. Enter the path accordingly. Here in this example :
/var/www/mapbender/
- The script will then automatically check the version of PHP, PostgreSQL/MySQL installed on your system. If the minimum requirements are fulfilled the script will execute further otherwise it will abort giving you a warning message.
- Next the script will check the version of Mapbender installed on your system, then it will verify whether it has been customized or not. If the installation has been customized, the routine will abort giving you a warning.
- After verifying all the requirements, the script will do the required file-system update without altering your old configurations, followed by a database update.
- The script will automatically create a backup of your old Mapbender files in a directory 'mapbender_backup_TIMESTAMP' (where TIMESTAMP is the timestamp when the backup was created). Here in this example backup directory may be :
/var/www/mapbender_backup_1218225369
- Your Mapbender installation is now updated. You can now safely delete the directory you downloaded. Here in this example:
$ rm -rf ~/mapbender

