Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Forked from WebEndevSnippets/gist:87798041fc0c50adbda5
Last active August 29, 2015 14:07
Show Gist options
  • Save wpsmith/6f6d0a83c00a968f83ed to your computer and use it in GitHub Desktop.
Save wpsmith/6f6d0a83c00a968f83ed to your computer and use it in GitHub Desktop.

/** Procedure for Site Transfer from WPE to Other Host */

Download latest ZIP from WPE (Backup Points) + last 29 zips

Upload WPE ZIP to new server

Extract/unzip WPE ZIP file on new server

Create new wp-config.php file with new DB_NAME, DB_USER, DB_PASSWORD, Keys and Salts, and $table_prefix.

(a) Add
	define( 'WP_POST_REVISIONS', FALSE )
(b) Add
	define( 'WP_AUTO_UPDATE_CORE', false );
(b) Move any custom items from WPE wp-config file such as license keys, etc

Replace WPE wp-config.php file with new file

Create new MySQL database in new hosting account

Import mysql.sql database file (found in wp-content of WPE ZIP) into new DB (phpMyAdmin)

Do nothing to table prefix (or use iThemes Security plugin to do this)

Delete

/mu-plugins/force-strong-passwords/
/mu-plugins/limit-login-attempts/
/mu-plugins/wpengine-common/
/mu-plugins/mu-plugin.php
/mu-plugins/slt-force-strong-passwords.php
/wp-content/advanced-cache.php
/wp-content/object-cache.php
/wp-content/mysql.sql

Find and replace olddomain.com with newdomain.com using searchreplacedb2.php (or importbuddy.php) (http://interconnectit.com/124/search-and-replace-for-wordpress-databases/)

Push all backups to Amazon S3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment