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:
1. Done a fresh WordPress install. The site works fine, and the default (emtpy) database is named wp_test
.
2. 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 www.mypage.no
with 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.
3. Create a new MySQL user, named mysqlusr
, and give all privileges to this user on both wp_test
and live_25_01_2015
.
4. Edit wp-config.php
so that mysqlusr
and its password is inserted along with the database.
5. Using the empty database wp_test
now works fine, giving the default WordPress site, but switching to live_25_01_2015
gives 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:
A. The salts in wp-config.php
are from the fresh WordPress install, not from the live server.
B. There are no plugins or no themes installed since I did a fresh install, so that cannot be the issue.
C. In wp-config.php
the language is set to Norwegian like this: define('WPLANG', 'nb_NO');
, since the live server is a Norwegian one.
D. The user mysqlusr
can actually select data from both databases, so the privileges seems to be correct.
E. Enabling WP_DEBUG
does nothing. No error is printed to screen, nor are any error_log files created.
F. Trying to echo something at the first line of wp-config.php
does nothing.