For sites on the Ezoic platform, publishers have access to the Wordpress Hosting app. This app allows publishers to host their sites on Ezoic's servers, free of charge!
*Requirement: Content Management System must be WordPress.
There are 2 different ways to transfer your site to Ezoic hosting*
Option 1: Migrate site via SFTP transfer*
Once the tech team has transferred over your original site to the staging site we will notify you. Please verify that your staging site looks and functions correctly by going to the Wordpress Hosting App and using the staging cookie.
Turning on the Staging cookie for your browser allows you to browse your staging site instead of your live site. If you are using Cloudflare, it also turns on development mode. Turning off the staging cookie allows you to browse the live site as usual and turns off Cloudflare's development mode.
If everything looks good on your staging site, then you are ready to 'Switch DNS'!
If you have to manually transfer your site, there are different ways you can do so. You could use a WordPress plugin to do most of the work for you. Example plugins are:
If the above is not an option, then you will need some minor technical skills to transfer your site. You would need to obtain a backup of your WordPress files and database. The backup to your WordPress files should be compressed (.zip or .tar.gz) and you should verify that these files exist in the main directory of the backup:
There are tools out there to export your database. One example tool is https://wordpress.org/plugins/wp-migrate-db/. If you manage to get your hands on a database backup file, you should verify it is in SQL format (.sql extension) and the file is uncompressed.
Assuming you managed to get a compressed backup to your wordpress directory and a file backup to your database, the first thing you want to do is go into 'Settings', find 'WordPress Hosting', and click "Create Blank Site":
You'll need to wait a couple of minutes for that to finish (probably refresh the page after a few minutes!) When it does, you should see some new buttons:
The next thing you will want to do is transfer your compressed WordPress backup to us. You will want to do that by clicking "SFTP Credentials" and saving the information shown in the pop-up screen:
Next, you need to download the FileZilla Client: https://filezilla-project.org/. The FileZilla Client is going to be used along with the SFTP credentials you just saved to access the web directory from the Ezoic Host. Once you launch FileZilla in your desktop, use the SFTP credentials to log in. Please note that you should prepend the "Host" text field with "sftp://"
Once you are able to connect to the Ezoic web directory, you will want to get your compressed WordPress backup file and move it to the main Ezoic web directory (anywhere will do!). The Ezoic web directory ("Remote site") is visible on the right side of the image while your physical machine directory ("Local site") is on the left side. After you move the backup, you will want to use "Unzip Compressed Files" tool in the 'WordPress Hosting' app in the Ezoic Dashboard to unzip the files.
This tool is just meant to uncompress your backup to a folder (Unzip Destination). The file path to the backup in the Ezoic web directory should be put in the top text box (Zipped File Path) while the bottom box (Unzip Destination) will be the folder that will contain the contents of the backup when uncompressed. Lets assume you want the "Unzip Destination" to be the "transfer" folder, so if you press "Confirm", the "transfer" folder should start being populated with the content in the compressed backup file. You can use the "Refresh" icon in FileZilla to check if files are being populated.
The backup won't be finished uncompressing until the "Confirm" button in "Unzip Compressed Files" is no longer greyed out.
While thats being uncompressed, you should download a tool called MySQL Workbench https://www.mysql.com/products/workbench/. Its going to be used for transferring your database backup. When you launch the Workbench, you will want to go Databases -> Connect To Database . A popup window should show up:
In the popup window, you will want to copy the database information from the wp-config.php file in the Ezoic Web Directory and put it into the "Connect to Database" window.
When you open the wp-config.php, the database credentials should stored be stored in this format:
<p>/** The name of the database for WordPress */ define( 'DB_NAME', 'DATABASE_123');</p><p>/** MySQL database username */</p><p>define( 'DB_USER', 'USER_123');</p><p>/** MySQL database password */</p><p>define( 'DB_PASSWORD', 'PASSWORD_123');</p><p>/** MySQL hostname */</p><p>define( 'DB_HOST', 'wordpress.db.ezoic.com');</p>
In the above example, "DATABASE_123" is the Default Schema, "USER_123" is the Username, "PASSWORD_123" is the password, and "wordpress.db.ezoic.com" is the database name.
DB_NAME -> Default Schema
DB_HOST -> Hostname
DB_USER -> Username
DB_PASSWORD -> Password
After you connect to the database, you will want to start importing the database. Administration -> Data Import, click "Import from Self-Contained File", enter path to your database backup, select "Default Target Schema" to your database name (wp-config.php), and click Start Import.
When the database import is finished, check that the the uncompressing of your wordpress backup is finished. If its finished, go back to the Ezoic web directory and start moving all files to another folder (i.e. "old_files").The following files should NOT be moved out:
Once those are moved, you will want to go inside the directory with the files from the uncompressed backup, which in this example is the "transfer" folder and start moving stuff into the main directory. The only file that should NOT move into the main directory is the wp-config.php file. Once you do all that, it may take a minute for the changes to take effect.
You can preview the site on our hosting clicking "Preview Site" in Wordpress Hosting to view the changes!
N.B - If you miss out a step in the migration, and set your site live with our hosting without all your files and database having been fully migrated over to Ezoic's servers, then you can reverse the migration by changing the Ezoic hosting dns record back to the A record with the IP for your previous host (so long as your previous hosting is still active). Here's how to edit the dns.
This will then reset the migration process in your Ezoic dashboard, and allow you to start the migration again.