I am currently trying to migrate a live Wordpress site to a local server to do development. I believe I have done most steps correct, but I am only getting a blank page. I am quite certain that this is a database issue, since the database created from a fresh install at the local server works fine, but a database containing the data from the live server is not. The server is an Ubuntu server and the LAMP stack is properly installed. Here is what I have (currently) done:
- Done a fresh Wordpress install. The site works fine, and the default (emtpy) database is named
- Create a new database, named
live_25_01_2015, and insert all data from the live server using mysqldump. The data are properly inserted.
- I used the interconnectit tool to replace all instances of
localhost/var/www, which is the place Apache looks for files. This will break some plugins (that are not currently existing anyway), but the links to images and other things should be ok.
- Create a new MySQL user, named
mysqlusr, and give all privileges to this user on both
mysqlusrand its password is inserted along with the database.
- Using the empty database
wp_testnow works fine, giving the default Wordpress site, but switching to
live_25_01_2015gives a blank page when navigating to the site. Therefore, I believe that this must be an issue with the database.
Other information that may or may not matter:
- The salts in
wp-config.phpare from the fresh Wordpress install, not from the live server.
- There are no plugins or no themes installed since I did a fresh install, so that cannot be the issue.
wp-config.phpthe language is set to Norwegian like this:
define('WPLANG', 'nb_NO');, since the live server is a Norwegian one.
- The user
mysqlusrcan actually select data from both databases, so the privileges seems to be correct.
WP_DEBUGdoes nothing. No error is printed to screen, nor are any error_log files created.
- Trying to echo something at the first line of