Migrating to a new server
Page under construction.
Note: If you migrate from a multi-db (Agency) setup, you have to migrate all databases.
To migrate your UXWizz dashboard to a new server, you have to:
You can also use a database backup service like SimpleBackups.io. It's also useful and easy to use for regular, scheduled backups and alerting.
1. Migrate the MySQL database
Before migrating the database, it's a good idea to first remove all unnecessary data (e.g. old recordings, heatmaps, etc.) in order to reduce the database size as much as possible.
1.1 Backup the current database
UXWizz provides a script to back up the current database. Simply run this in your UXWizz folder:
1.2 Copy the .sql.gz file to the new server
We will use scp
over ssh
to copy the file directly to the new server.
1.2.1 Generate new SSH key
Skip if the new server uses password auth. This key is only used for the scp authentication.
On the original server, generate a new SSH key:
On the new server, add the previously generated public key:
1.2.2 Copy the backup file
Finally, start copying the backup file (replace the filename and the IP to the new server IP)
1.3 Import the new database
On the new server, unzip the backup, create a new database (preferably with the same name as the old one) and import the sql file:
You might also have to create the same users as before. On the original server, you can see existing MySQL users and their permissions:
You can copy those grant commands and run them on the new MySQL instance to create the users and give grant privileges.
2. Copy the UXWizz folder
Assuming your installation folder is /var/www/html:
Make sure the folder exists on the new server: mkdir -p /var/www/html
Note: If you had cron jobs enabled, you should also copy the contents of crontab -e
3. Point your domain name to new server
Go to your domain name's DNS configuration and update the IP to point to the new server.
For any other server configuration (HTTPS certificate, MySQL optimized configuration) check out the UXWizz new server installation guide.
Last updated