• Mac OS10.8.5
    Background.
    I have been Following tutorials that midway, regressed in strategy.
    My local files are very confused !!
    I want to delete them all and start from scratch.

    I have a couple of WordPress Sites that live Remotely.
    They are fine.
    I would like to delete all LOCAL folders and files (that are confusing).
    I would like to copy the GOOD Remote WordPress Folders/Files to my computer.

    This is my strategy.
    Create Identical folder names Locally.
    Download the REMOTE folders/files from Remote to These LOCAL Folders/files.

    question.
    I think that the ONLY thing that I have to do is to go into the wp-config.php file and change the
    Names of:
    DB_NAME
    DB_USER

    This is too simple.
    Can someone please explain what I should be doing ?

    When I set things up to work locally, I had to launch MAMP,
    Click on phpMyAdmin and set up the database and users.

    Question.
    Is my strategy going to work.
    How will I get the page to launch to being me to the phpMyAdmin setup Locally ?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Files and folders are only one part of a WP installation; the other part is the database for each site; this is where all of your posts, pages, settings, etc. are stored in and retrieved from. Without the database, your site will not work.

    Live Site:

    – export the database
    – ZIP the contents of the site and download (or if the live site does not support ZIP ((archiving, compression, etc.)) then use FTP to download)

    Local Site:
    – use phpMyAdmin to create a new, empty database
    – import the exported database .sql file
    – edit the siteurl and home fields in the wp-options table with the new location URL:

    In your case with MAMP (default settings):
    http://localhost:8888 – if it will be in the root of the local server
    http://localhost:8888/folder_name – if in a folder in the local server web root

    – unZIP or move the downloaded site files to the desired location
    – edit the wp-config.php file there with the local database connection credentials (
    NOTE: use a plain text editor (such as the popular, free Text Wrangler from Bare Bones Softwareto do so – TextEdit, by default, uses “fancy quotes” which will not work!)
    – log into the local site Dashboard and install and run this plugin:

    http://wordpress.org/plugins/velvet-blues-update-urls/

    — select all options EXCEPT the last one (GUID)

    – go to Settings > Permalinks and just re-save

    Done 🙂

    Thread Starter shareyourpeace

    (@shareyourpeace)

    @lylechamney. Thank you very much for taking the time to explain.
    This is a clear explanation and I understand the logic !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bring down wordpress files from remote to local’ is closed to new replies.