Maze Posted December 5, 2014 Share Posted December 5, 2014 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/mysitei 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 pagecf: 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!? Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted December 5, 2014 Share Posted December 5, 2014 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. Quote Link to comment Share on other sites More sharing options...
kpmedia Posted December 18, 2014 Share Posted December 18, 2014 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.