Forums

[resolved] Copying an existing installation to a local machine (windows / iis) (7 posts)

  1. zaqedc
    Member
    Posted 11 months ago #

    Apologies in advance if this question has been asked before, I haven't found anything exactly matching it in the forums.

    I'm trying to copy an existing wordpress site as-is to a local machine so I can test various plugins etc. without the risk of disruption to the main site. Also, to have a version that can be kept in case something goes wrong with the host etc.

    On the local machine I have installed PHP ok with iis 5.1 and sucessfully imported a copy of the database with the same user details as the live site.

    I copied the wordpress software/directory structure directly from the server and put it into the wwwroot folder on the local machine. The wp-config file was edited to show 'localhost' as the DB_HOST.

    Whenever I navigate to http://localhost however I am brought to a blank screen, no 404 or error of that type. Does anyone have an idea what I might be doing wrong?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

  3. zaqedc
    Member
    Posted 11 months ago #

    Thanks very much for that. I followed option 2 from the "If you forget to change the locations" section and changed the option_value from the url to "localhost". unfortunately the problem persists. Any ideas?

    EDIT - I should mention that, having followed the advice above, I can now access localhost/wp-admin just fine. Under settings --> general I've confirmed that the "wordpress address" and "site address" fields are set to http://localhost.

    Also, instead of quickly loading to a blank page, it instead seems to load a page for a long time before coming up blank.

  4. zaqedc
    Member
    Posted 11 months ago #

    Tried a test with a brand new database and a clean wordpress install and it works ok, so that rules out my messing something up with iis.

    When I look through the settings in wp-admin I can see no setting that would appear to be behind this (besides the URLs section, which has already been set to localhost).

    Anyone have an idea? Might it be something to do with the database I copied over?

  5. zaqedc
    Member
    Posted 11 months ago #

    Resolved this. I copied a fresh set of wordpress folders to my root folder, with the exception of wp-content. When I put the wp-content from my site into it and checked the site came up almost exactly the same as the live one. Presumably a few more files need to be moved over.

    Thanks again for your help Esmi.

  6. NinkyNonk
    Member
    Posted 1 month ago #

    Hi yas,

    I've just gone through a similar issue.. import from server to local machine. I had to re-install Word press locally.. & this fixed the problem.

    MY issue now is trying to get the posts, and plug in settings to show up on my local W.P set-up., also I'm guessing the advertising won't show local .. will it ??

  7. NinkyNonk
    Member
    Posted 1 month ago #

    so, which file/s do I need to update ??

Reply

You must log in to post.

About this Topic