WordPress Site Migration

Migrating your WordPress installation to another server, or directory may turn out to be a very long process.

A few tips that may shave you some time:

  • Going from PHP 4.x to PHP 5.x will leave you with a large error_log file. PHP 5.x has Strict Standards enabled by default which leads to hundreds of warnings at the log file, disk I/O traffic. You will need to limit the size of error_log file located under root folder (public_html or www) and administrator folders so as not to run out of space. Moreover, the bellow lines wp_config.php will be helpful:
    error_reporting(E_ALL & ~E_NOTICE | E_STRICT);
  • If you don’t see your home page, or cannot login to admin page, you may need to increase the value of memory_limit in php.ini file to 96MB or more. If you are under shared hosting (no access to php.ini), a quick workaround is to add the following line to the beginning of your index.php:
  • Otherwise, you may set memory limit under wp_settings.php:
  • Use Database Search and Replace script to easily update wp_sitewp_sitemetawp_options, wp_blogs, wp_posts, etc tables so as to replace old path with the new one:


  • Edit wp_config so as to point to new domain and path:
define('WP_SITEURL', 'http://newpdomain.com' );
define('WP_HOME', 'http://newpdomain.com/pathtowordpress' );
  • In case of Multisite WordPress installation you may need to have a look at the following resource:


Good luck!