User guides
Project management
Migrate a project

Migrate a project

Learn how to migrate a project from other hosting provider

At any point, you can seamlessly migrate your existing project to SiteBox Hosting. The migration process should take no longer than a few minutes, and below, we provide a step-by-step guide on how to accomplish this.

Get the source code, database and resources for your website

First and foremost, you need to retrieve the source code of your website. Depending on your current hosting provider, you'll either need to log in to FTP or download it through the hosting control panel.

If you have FTP server credentials, simply log in and download the contents of the wp-content directory.

Also, download a copy of your website's database. You can do this in various ways depending on your hosting provider. You may need to create a backup from which you can download the database, or you may be able to do it directly from the database server, for example, through phpMyAdmin.

Create GitHub repository

If you already have the code for your website, you can proceed to create a repository. You can do this by following the documentation provided by GitHub.

At this point, you can push the entire downloaded source code, excluding the uploads directory, to the repository — these files will be uploaded in a later step.

Also, make sure that your Github account is integrated with the SiteBox dashboard and that the integration has permission for the selected repository.

Create a project

Based on the collected data, you can proceed to create your project. Following the instructions below, you will create a project and your first environment.

Import database and uploads

Once your environment has been created, you can proceed to import the database and uploads.

Database search & replace

Before importing the database, ensure that the links in the database are correct for SiteBox Hosting.

You can do this using the search and replace mechanism. By using the appropriate WP CLI command, you can safely replace links with the desired ones, as explained in the documentation.

The other way to prepare a database is using a WordPress plugin such as Better Search Replace or Search & Replace.

Create a Snapshot

Now you can proceed to create a Snapshot that will contain the database and uploads. Please refer to the documentations below to understand the structure the Snapshot should have and how to import it.

Environment configuration

In this step, you can additionally ensure that your environment is configured in the same way as on the previous hosting. You can decide which versions of PHP and WordPress you want to use and configure the necessary environment variables.

Information about PHP and WP versions should be available using the administrative panel of the previous hosting provider. As for the environment variables, you should find them in the wp-config.php file. Search for your custom environment variables; all the basic configuration constants are managed by SiteBox.