You may need to move the panel and the license from one server to another when upgrading your hardware or when changing the license version.
To do so:
- Import user data from the old server to the new one.
- Assign the software license to the new server.
Step 1. Import user data
- Before you start the import process, you need to activate a separate license for the new server. Follow the installation guide to install and activate a trial version.
- Import data to the new server.
Import IPmanager files
- Install IPmanager on a new server. As the domain name server, select the same one that was selected for IPmanager on the old server.
- Transfer the required settings from the IPmanager configuration file (/usr/local/mgr5/etc/ipmgr.conf) to the new server. We do not recommend to copy the entire configuration file, as it may contain paths that are not on the new server. For example, if servers have different operating systems.
-
Copy the IPmanager database to the new server. To do so, run the command on the server:
scp root@<old server IP address>:/usr/local/mgr5/etc/ipmgr.db* /usr/local/mgr5/etc/
Import the DNS server files
If BIND is installed on the servers
- Copy the DNS server configuration file to the new server:
- CentOS: /etc/named.conf
- Debian: /etc/bind/named.conf и /etc/bind/named.conf.options
- Copy the domain zone files to the new server:
- CentOS: /var/named/*
- Debian: /etc/bind/domains
-
Check the owner of the transferred domain zone files on the new server. If the file owners on the new and old servers do not match, change the owner. For example, in CentOS7, you need to run the following commands:
chown named:named /var/named/*ip6.arpa
chown named:named /var/named/domains/*
chown named:named /var/named/*in-addr.arpa
service named restart
If PowerDNS is installed on the servers
- Transfer the required settings from the PowerDNS configuration file to the new server.
- CentOS: /etc/pdns/pdns.conf
- Debian: /etc/powerdns/pdns.conf
- Transfer the PowerDNS database to the new server:
-
Create a database dump on the old server.
mysqldump <database name> > <path to the file to which the dump will be written>
View details -
Copy the dump to the new server. To do so, run the command on the server:
scp root@<old server IP address>:<path to the file to which the dump is written> <path to the file on the new server to which the dump will be copied>
-
Deploy the database from the dump on the new server:
mysql <database name> < <path to the file on the new server to which the dump will be copied>
View details
-
Check
-
Restart IPmanager on the new server
/usr/local/mgr5/sbin/mgrctl -m ipmgr exit
- Make sure that IPmanager works fine.
Step 2. Assign the license to the new server
- After you have imported all the users to the new server, log in to the Client area where you ordered the license.
- Delete the trial license from the client area.
- Open the configuration form of the commercial license and specify the IP address of the new server.
- If you upgrade or change the product version (eg. from ISPmanager 4 to 5 or from Lite to Business) you also need to change the tariff plan in the Client area. For more information about how to do so, please contact your license provider.
-
Update the license file. Go to Help → About program → click on Update license. Or run the command to update it manually:
/usr/local/mgr5/sbin/licctl fetch mgrName
Where