Migrate a project
Learn how to migrate a project from other hosting providerAt 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.
If you need any assistance at this stage, feel free to contact us through SiteBox support team, and we'll assist you in the migration process.
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.
See also the user guide:
GitHub integration
Learn how to connect GitHub account with SiteBox Dashboard
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.
See also the user guide:
Create a new project
Learn how to add a new project to your company
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.
See also:
Snapshots
Manage state of your website with snapshots
See also the user guide:
Snapshot management
Backup of the environment at a new level
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.
See also:
Versions management
Decide what version of PHP and WordPress the website is run on
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.
See also:
Environment variables
Configure WordPress instance using environment variables