Backups and migrations

Migrate a website automatically from another server with Softaculous

Reviewed on 5 min read migrations applications

A little-known feature of the Softaculous application auto-installer is that it can migrate an application automatically from another server using only the source's FTP login details. It works for any application in the Softaculous catalogue: WordPress, PrestaShop, Joomla and many more.

Even though you only give it FTP access, Softaculous also copies the database and adjusts the configuration so the application works on the new hosting, even if you install it on another domain or in another folder.

Run the migration

  1. Log in to cPanel and open Softaculous.
  2. Find the same application you have on the source in the catalogue (for example, WordPress) and open its page.
  3. Click Import.

Application page in Softaculous with the Import option

  1. Open the From Remote Server tab.

From Remote Server tab in the Softaculous import

Source details

Fill in the connection details for your previous hosting:

  • Domain Name: the domain where the website currently lives, for example dominio.com.
  • Server Host: the FTP server, for example ftp.dominio.com. If you leave it empty, the domain is used.
  • Protocol and Port: FTP on port 21 is the usual choice. If your previous provider supports an encrypted connection and the drop-down offers it, choose it.
  • FTP Username and FTP Password: the FTP username and password for your previous hosting.

The two fields that usually cause confusion are FTP Path and Installation Directory:

  • FTP Path is the website's public folder as you see it when you connect over FTP. If, when you connect over FTP, you see a www (or public_html) folder containing the website's files, enter /www (or /public_html). If you see the website's files straight away when you connect, enter /.
  • Installation Directory is the subfolder where the application sits inside that public folder. If the website is at dominio.com, leave it empty. If it is at dominio.com/blog, enter blog.

Softaculous Source form with domain, FTP server, username, FTP Path /www and Installation Directory blog

Destination details

Specify where you want the application to end up on your Hostsuar hosting:

  • Choose Protocol: choose https:// if the domain already has an SSL certificate on the new hosting.
  • Choose Domain: the destination domain.
  • In Directory: leave it empty to install it in the root (dominio.com) or enter the folder, for example blog for dominio.com/blog. The destination folder must be empty.

Softaculous Destination form with https protocol, domain and blog directory

If you choose a different domain or folder from the source, Softaculous changes the application's internal URLs and paths so it works in the new location.

  1. Click Import and wait. How long it takes depends on the size of the files and the database. You can follow the progress in Task List: the migration has finished when it reaches 100% and Import Completed appears.

How it copies the database

FTP can only copy files, so Softaculous does the following:

  1. It copies all the application's files over FTP.
  2. It uploads a small script to the source that generates a .sql copy of the database.
  3. It runs that script by visiting your domain over the web (dominio.com/...) and downloads the copy to the new server.
  4. It creates the database and its user on your hosting, imports the copy and updates the application's configuration file with the new connection details, the domain and the paths.

If it fails

  • The source website must be working and reachable over the web throughout the process, because the database copy is made through it. If the domain already points to Hostsuar, the import cannot reach the source.
  • It stops while copying the database: some providers have a very low maximum PHP execution time, and copying a large database gets cut off. Ask your previous provider to increase max_execution_time or open a support ticket and we will migrate it manually for you.
  • FTP connection error: check the username, password, server and port by connecting first with a client such as FileZilla.
  • The application is not in the Softaculous catalogue: this method will not work; use a manual migration or a plugin like the ones we explain in migrate WordPress to another hosting.

Once you have checked that the website works on Hostsuar, you can change the domain's DNS so it points to the new hosting. Softaculous only moves the application: mailboxes and other account settings are migrated separately.

All the fields are also explained in the official Softaculous remote import guide.

You may also find useful

Something wrong or out of date? Tell us and we will review it.