Jump to content


how to create a local copy of a live wordpress-site: to avoid blank page

linux php apache mysql

  • Please log in to reply
2 replies to this topic

#1 Maze

  • Members
  • PipPipPip
  • Advanced Member
  • 164 posts

Posted 05 December 2014 - 01:35 PM

hello - dear phpfreaks,

i portet over a wordpress site to localhost. (an opensuse linux-box)

all went nice and was very smooth to do so.

after porting over the files and the db;
i added the db-name and user-name etc. but nothing more.
then i looked at the site http://localhost/mysite

i saw the site - but only once -  that is very very interesting.

i read that i have to do more.  Probably these changes - mentioned below are mandantory in order to avoid a blank page

cf: https://managewp.com...#comment-148613

The two fields you need to edit are “siteurl” (highlighted above) and “home” (which you may need to navigate to the second page to find). Just click the “Edit” buttons next to each field, and replace the URL contained in “option_value” with “http://localhost/yourfoldername/”.
That’s it! If you now navigate to “http://localhost/yourfoldername/”, your site should load up in all its glory. Please note that if you use custom permalinks, you will need to change them to default (in the WordPress > Settings > Permalinks screen) in order for internal links on your site to work. You can of course change the permalinks back to their custom form at any time.


question: is this true? Do i need to make these changes to avoid a blank page!?

#2 Ch0cu3r

  • Moderators
  • Advanced Member
  • 3,418 posts

Posted 05 December 2014 - 04:00 PM

That seems a logical step to do. Otherwise all the links on your local wordpress installation will be pointing to your live site and not your local installation.


However a blank page for a PHP script usually means an unrecoverable error was encountered. To see what the error is you need to either look at your servers error log or enable PHP error reporting.

#3 kpmedia

  • Members
  • PipPip
  • Member
  • 16 posts

Posted 18 December 2014 - 04:26 AM

Changing the URL is always a nuisance. What I prefer to do is put it on another server, then alter hosts.

That's MUCH easier.

I hate messing with localhost work.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users