Jump to content

Recommended Posts

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/how-to-create-a-local-copy-of-a-live-wordpress-site#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!?
 

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.

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.