WordPress Hosting App

Modified on: Wed, 19 Aug, 2020


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


  • Unlimited bandwidth
  • Unlimited cloud-based memory
  • Unlimited cloud-based CPU cores
  • Unlimited SSD storage
  • Uses PHP 5.6 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
  • We will be offering (free) malware scanning soon
  • 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

image




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":


image


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:


image


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:

image


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://"

image


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.

image


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.

image


The backup won't be finished uncompressing until the "Confirm" button in "Unzip Compressed Files" is no longer greyed out.

image


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:

image
image


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


image


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.

image


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
image


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!


image


Loading ...