php – problem migrating wordpress to localhost

I have followed this guide to manually migrate WordPress site to localhost.

I have followed all the steps: downloading files using ftp, exporting database, importing to localhost database, changing URL link to localhost and finally wp-config.

I tried it on two of my sites and encountered different problems:

  1. Safari can’t connect to the server error message
  2. The following text is displayed on the screen:

in front of the WordPress application. This file does nothing but loads wp-blog-header.php which tells WordPress to load the theme.

 *
@package WordPress */
/** * Tells WordPress to load the WordPress theme and output it. 
* * @var bool */ 
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */ 
require( dirname( FILE ) . '/wp-blog-header.php' );"

Can anyone advise me how can I display my website?

Leave a Comment