In the following manual we are going to learn how to perform a service migration from another Hosting provider to SWHosting with our native migration tool.
In the new version of SWPanel 2021, we have added a new function to make it easier for our clients to transfer web content from an external provider to SWPanel, the "Tool to migrate websites".
Antes que nada, debes acceder al Dashboard principal de SWPanel. Para ello, pulsa sobre el logotipo de SWPanel, o logo personalizado, situado en la parte superior izquierda de la pantalla:
From the main SWPanel Dashboard, open the drop-down menu "Tools" -> "Tool to migrate Webs" and click on "Migrate a Web now":
You will access the migration assistant:
At this time, you can select if you want to migrate the data to a new Hosting service or an existing Hosting service. In this manual, we are going to migrate to an existing Hosting service. To see how to create a Hosting service, we recommend you visit our manuals on how to create a Hosting service and how to create a Web Hosting in my Cloud.
Select "Migrate the Web to an existing Hosting service":
A drop-down will open in which you must select which service you want to migrate to.
⚠️ For the migration to be carried out successfully, the Hosting service must be empty. That is, There can be NO CMD (WordPress, Prestashop or Moodle) installed, there can be no Database or created FTP accounts. Nor can there be email accounts. ⚠️
In this case, select the previously created service, "migra01.swmanuales.com":
Enter the necessary data to migrate the content of the web. If there is no website to migrate, ou must uncheck the "Check" next to the name "Synchronize Web content":
The data you will need for this step are:
Origin server IP The IP that you have assigned for your website in the current provider. You can check the IP of your website from the administration panel that you currently have with your service provider.
Web path In which directory or FTP folder your website is located. Depending on the assigned root folder and the management panel you use in your current provider, the Path will be different.
⚠️ Keep in mind that depending on where your FTP is pointing, the path you need to sync may vary. That is, if your FTP points directly to your root directory, you must specify the path where the web content is located (example: cpanel -> "public_html/", plesk -> "httpdocs/", etc...). However, in case your FTP already points to the web directory, you just have to enter the path "/". ⚠️
Copy content from the web by FTP/SSH You can carry out the migration via FTP or via SSH connection directly.
To migrate via FTP, you need:
Press the "Check" corresponding to "Create FTP account on destination server". Although we recommend that there is no FTP account already created in the Hosting service, you can click on "Overwrite FTP account on the destination server, if it already exists".
To migrate via SSH, you need:
Install an SSL certificate for the migrated web You can install a self-signed certificate for your website or you can import a certificate that you have installed in your current service provider, if you have one. In order to import a certificate, you need to copy its CRT, CA and KEY keys.
In this case, we have chosen in the configuration to carry out the migration by FTP and we have decided to import the certificate from another hosting provider. It would be as follows:
Enter the necessary data to migrate the database. If you don't have a database to migrate, you must uncheck the "Check" next to the name "Synchronize Databases":
The data you need for this step are:
IP of the Origin Database Server The IP you have assigned for your database server at the current provider. You can check the IP from the administration panel that you currently have with your service provider.
Connection data and access to the databases to be migrated, you need:
It is very important that this data is exactly the same as you have in your source database.
⚠️ You must bear in mind that remote access to synchronize the database from an external connection must be enabled, therefore, make sure to open port 3306 in advance. In case it is not possible to open the port, this part of the migration must unchecked and performed via import (you can use PHPMyAdmin, or HeidiSQL, etc...).
To make sure your port is enabled, you can check the following manuals:
In our configuration example, it would look like the following:
Enter the necessary data to migrate the email accounts. If you do not have email accounts to migrate, you must uncheck the "Check" next to the name "Synchronize email accounts":
The data you need for this step are:
IP of the Origin Email Server The IP you have assigned for the email sending server at the current provider. You can check the IP from the administration panel that you currently have with your service provider.
Number of email accounts to migrate Proceed to indicate how many email accounts you want to migrate. In our case, it will be two email accounts:
As soon as we select the number of email accounts, the tool will ask you to specify the specific data for each existing email account:
In our configuration case, it would be as follows:
If you wish, you can indicate an email account so that you will be notified of the completion of the migration:
Finally, check again that all the data are correct, click on "Check" to accept the contract and the clauses and conditions and click on "Accept and create".
The migration has no cost, so the "Total service cost" will be 0€.
⚠️ During the migration preparation process, you cannot and should not exit the SWPanel loading screen. Once the migration has started, you will be redirected to your SWPanel and the migration will take place in the background. ⚠️
Once the migration is finished, you will return to the SWPanel home Dashboard and you can now proceed to check the correct functioning of the web, by modifying your Hosts file.