Rate Your Experience

WordPress Hosting App

Modified on: Mon, 20 Jun, 2022

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. 

Benefits of Using Ezoic Hosting

  • Cloud-based memory
  • Cloud-based CPU cores
  • SSD storage
  • Uses PHP 7.4 by default and can be customized to other PHP versions
  • Ezoic will stop malware at the DNS level
  • Ezoic detects and excludes unsafe content
  • The system currently also offers DDoS protection and other security measures
  • Sites hosted with Ezoic will also benefit from having tech team members monitor user experience metrics regularly

Steps to Switching to Ezoic's Hosting: 

There are 2 different ways to transfer your site to Ezoic hosting*


Option 1: Migrate site via SFTP transfer*

  • We make an attempt to transfer content from your old host to us
  • We need SFTP credentials to access your web / wordpress directory
  • This method is preferable for sites with small amounts of content. This transfer method doesn't work that well if your site has large amounts of content (tens of thousands of uploaded content like images) and you are very active in uploading new content.
  • This method will likely not work for sites that have dynamic content.

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'!

Option 2.
 Create Blank Site / Manual Transfer

  • We create an empty WordPress staging site for you, and you are free to add anything you want to it
  • We provide SFTP access to help you transfer files.

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:

  • [dir] wp-admin
  • [dir] wp-includes
  • index.php
  • wp-activate.php
  • wp-blog-header.php
  • wp-comments-post.php
  • wp-cron.php
  • wp-links-opml.php
  • wp-load.php
  • wp-login.php
  • wp-mail.php
  • wp-settings.php
  • wp-signup.php
  • wp-trackback.php
  • xmlrpc.php

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!)

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 on "Manage Credentials" tab:


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. You can find this option under "Content Settings" 


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:

/** The name of the database for WordPress */ define( 'DB_NAME', 'DATABASE_123');

/** MySQL database username */

define( 'DB_USER', 'USER_123');

/** MySQL database password */

define( 'DB_PASSWORD', 'PASSWORD_123');

/** MySQL hostname */

define( 'DB_HOST', 'wordpress.db.ezoic.com');

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:

  • the folder containing the uncompressed content from the backup
  • ezwp.txt
  • wp-config.php
  • wp-health.php
  • .htaccess file


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.

Loading ...