Upgrading from 0.7.0 to 0.7.1
Prev | Appendix B. Manually upgrading moregroupware | Next

## Upgrading from 0.7.0 to 0.7.1

Here is what to do (Unix style, log in to server first):

1. Backup your 0.7.0 directory!!!

   `cd /one/folder/above/moregroupware`

   `cp -R moregroupware moregroupware.bak`

2. Backup your database!!!

   `mysqldump --add-drop-table -a -u [user] -p [dbname] > ~/mgw070.sql`

3. Get the new release from sourceforge.net.

4. Delete everything in the more.groupware root folder except(!) `data_store`, `data_cache`, `config.inc.php` and `templates_c`.

5. Unpack the new files from the archive(s).

   `cd /one/folder/above/moregroupware`

   `tar xzf moregroupware-0.7.1.tar.gz`

6. Now edit `config.inc.php`.

   - Add this line (if not already present):

         if ($appconf['rooturl'][strlen($appconf['rooturl'])-1]!='/') $appconf['rooturl'] .= '/';
         define('ROOTURL', $appconf['rooturl']);

   - Adjust the following lines to fit:

         $appconf['mgw_version_number'] = '0.7.1';
         $appconf['mgw_version'] = '0.7.1 - Interim / Update';

7. Open up your browser and log in to more.groupware as admin, the general module is updated automatically.

   Log in as admin again, the update for the overview module is done.

8. If you run into trouble when logging in (error message about a missing column in mgw_news), manually change the URL in your browser's address bar to point to the news module. This will update the news module and the error should disappear.

9. Now go to every installed module as admin to call the update procedure.

10. If all is up and running, you can safely delete the backup files and the SQL dump created in steps 1 and 2.

If you run into trouble, you can revert back to the old release by removing the new moregroupware directory, moving back the backup dir and just piping the backup SQL into the database:

`rm -ri moregroupware`

`mv -i moregroupware.bak moregroupware`

`mysql -u [user] -p -e "DROP DATABASE [dbname]"`

`mysql -u [user] -p -e "CREATE DATABASE [dbname]"`

`mysql -u [user] -p [dbname] < mgw070.sql`

Prev | Up | Next
Upgrading from 0.6.8/0.6.9 to 0.7.0 | Home | Appendix C. Using DocBook XML for documentation