On this page... (hide)
This document will provide a tutorial on upgrading from Atmail 5 to Atmail 6 webmail client with user.
Note: The upgrade and migration scripts have been used for production systems and considered stable.
Before proceeding it is strongly recommended that you make a backup of your current Atmail installation:
tar cfvz atmail5-backup.tgz /var/www/html/atmail /etc/httpd/conf/httpd.conf
Some required information about your Atmail 5 installation can be found in the Config.php file:
./webmail/libs/Atmail/Config.php
The following fields will contain everything you need:
Other information are used in the Atmail 6 installation are required:
tar xzf atmail6.webmail.tgz atmail/webmail/utilities/migration/a5-upgrade.php
You must find the Config.php file for your current installation, then you may run the supplied upgrade script which will upgrade your current Atmail 5 installation to the latest schema.
php atmail/webmail/utilities/migration/a5-upgrade.php atmail/webmail/libs/Atmail/Config.php
In your Atmail5 installation root directory (for the following examples we assume the default installation folder):
cd /var/www/html/atmail/ mv webmail webmail.a5 mv README README.a5 rm -rf tmp
Note : It is very important that you leave the users directory intact.
Please follow the Installation Guide for Atmail 6.
Make sure you create a new database for Atmail 6 during installation. Your existing Atmail 5 database is required to put data into your new Atmail 6 database. DO NOT use your Atmail 5 database for Atmail 6.
Using the provided scripts we can now migrate user accounts and settings from the current installation of Atmail 5 to your new installation of Atmail 6.
Find the utility directory for your Atmail 6 installation.
cd /var/www/html/atmail/webmail/utilities/migration
To perform the user migration:
php migrate-a5-a6.php [atmail 5 table] [atmail 6 table] [atmail 5 sql user] [atmail 5 sql pass] [atmail 5 sql host]
To perform the configuration migration:
php migrate-a5-config.php [atmail 6 table] [atmail 6 sql user] [atmail 6 sql pass] [atmail 6 sql host] [Config.php (optional)]
If your Atmail installation is in a different location then you will need to specify the location of your Config.php
To perform the calendar data migration:
php migrate-calendar-a5-a6.php [sql host] [sql table] [sql_user] [sql_pass]
Your Atmail 6 installation will now have the previous Atmail 5 installation user accounts and settings.
Atmail 6 tarball downloaded to ~/, previous installation lives in /usr/local/atmail.
tar xzf atmail6.webmail.tgz atmail/webmail/utilities/migration/a5-upgrade.php php atmail/webmail/utilities/migration/a5-upgrade.php atmail/webmail/libs/Atmail/Config.php [Preform web-base upgrade] cd /var/www/html/atmail mv webmail webmail.a5 rm -rf tmp tar xvzf atmail6.webmail.tgz -C /var/www/html/ chown -R apache /var/www/html/atmail/ [Preform web installer http://localhost/atmail/webmail/] cd /var/www/html/atmail/webmail/utilities/migration php migrate-a5-a6.php atmail562 atmail6 mysql_user mysql_pass localhost php migrate-a5-config.php atmail6 mysql_user mysql_pass localhost php migrate-calendar-a5-a6.php localhost atmail6 mysql_user mysql_pass
Please see Migration Issues for any known upgrade or migration issues.