Guide setting up magento on local host

by DSGDSG
3 replies
  • ECOMMERCE
  • |
Can someone please point me to a good guide for setting up magento on a local host? I already have info on how to do it with a fresh install of the demo store, however my site is live and loaded with products. I want to mirror that locally so I can test extensions before employing them live.

Thanks
#guide #host #local #magento #setting
  • Profile picture of the author kilgore
    Do you know anything about linux admin? If so, I'd recommend using virtualization and installing magento as you would on any other server. If not, I'd recommend getting a second (smaller) hosting plan and having magento installed there for you so you can do your testing. I also highly recommend using Git or some other version control so you can rollback changes and keep your development and production environments as close to identical as possible.
    {{ DiscussionBoard.errors[9283044].message }}
    • Profile picture of the author DSGDSG
      Yes I will be using a virtual server on my own laptop. It's easy enough to find info on how to do it with a fresh install of magento but I need to mirror an already established site and that's what I need info for.
      {{ DiscussionBoard.errors[9283407].message }}
      • Profile picture of the author kilgore
        Here's one easy way to do what you're looking for:
        1. Get a MySQL dump of the production database and load it into your development MySQL instance
        2. Download the production web files. To make things easy, put the files in the same path as on your live server (for instance, if your DocumentRoot on your production machine is /var/www/html make sure your development DocumentRoot is also /var/www/html though you can also use symlinks to accomplish this).
        3. Use your MySQL client of choice to log into your development database and change your site URL. You can use a query like this:

          Code:
          UPDATE core_config_data SET value = 'http://dev.example.com/' WHERE value='http://www.example.com/';
        A more complicated version -- and what I personally do -- is having all my code checked into git and then having both my dev sites and production sites be checked out branches of my git repository.

        Hope this helps!
        {{ DiscussionBoard.errors[9286538].message }}

Trending Topics