how-to-clone-magento-post-featured-image-600x450

10 Error Free Steps to Clone Magento Store Into New Folder

Share your love

This post enumerates 10 error free steps to clone Magento store into a new folder in the same hosting server. Cloning your Magento store into a new folder means you either you want to view the clone as a subdomain or as a subfolder:

Main Goal

The main goal of these steps is to let you and your team view an exact live working copy within 1 to 2 hours. Therefore, knowing how to use cPanel and working with installed Magento files is a must.

10 Steps to Successfully Clone Magento Store

  1. First, create the subdomain or add a new folder in the root directory of your site.
  2. Next, using cPanel’s Code editor, open your existing Magento store’s /app/etc/local.xml file. Take note of the database name and database user.
  3. Open phpMyAdmin and duplicate the database.
  4. How to duplicate the database via phpMyAdmin

    • Find the database name from the left column of phpMyAdmin then click on it.
    • Click the Operations tab from the top menu.
    • Type a name for the clone database.
    • Make sure you select the same three highlighted options as shown in my screenshot below.
    • Click the Go button.
    clone magento store post screenshot
    How to duplicate a database via phpMyAdmin
  5. Now, open MySql databases and add the same database user with the clone database.
  6. Open File Manager.
  7. Then, go inside the original Magento site’s directory and copy all its files to the new location’s folder that you’ve created in Step 1.
  8. After cPanel has finished copying, open the clone’s /app/etc/local.xml file with cPanel’s Code editor tool and replace the database name with the clone database name.
  9. Go back to phpMyAdmin and select the core_config_data table of the clone database. Replace the unsecure base URL and secure base URL with the subdomain or the subdirectory URL.
  10. Delete all cache files inside the new location’s /var/cache/ directory.
  11. Finally, visit the subdomain or subfolder URL on your favorite browser to view your Magento store copy. Also, try logging in to the backend using the same user name and password as the original site.

By carefully following all the above 10 steps, your clone Magento site will be the exact working copy of your existing Magento website.

The fastest way to make it right, if you see an error when visiting the clone Magento site, is to start from Step 1 again. Then, just cleanup later by removing the other folders and databases not in use to free up server disk space.

Share your love

27 Comments

  1. Its like you read my mind! You appear to know a lot about this, like
    you wrote the book in it or something. I think that you could do with a few pics to drive the message home a
    bit, but instead of that, this is wonderful blog.
    A great read. I will definitely be back.

  2. Just desire to say your article is as astounding.
    The clearness in your post is simply cool and i could assume you are an expert on this subject.

    Well with your permission allow me to grab your RSS feed to keep updated with forthcoming post.
    Thanks a million and please keep up the enjoyable work.

  3. Undeniably believe that which you said. Your favorite reason appeared to be on the net the simplest
    thing to be aware of. I say to you, I certainly get irked
    while people think about worries that they just do not know about.
    You managed to hit the nail upon the top as well as defined
    out the whole thing without having side-effects , people could
    take a signal. Will likely be back to get more.
    Thanks

  4. I am curious to find out what blog platform you happen to be utilizing?

    I’m having some minor security issues with my latest website and I’d
    like to find something more risk-free. Do you have any suggestions?

  5. Hi, I think your website might be having browser compatibility
    issues. When I look at your website in Chrome,
    it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that,
    wonderful blog!

  6. My spouse and I absolutely love your blog and find most of your post’s to be just what I’m looking for.
    Does one offer guest writers to write content for you personally?
    I wouldn’t mind composing a post or elaborating on most of the subjects you write
    with regards to here. Again, awesome web
    log!

  7. hey there and thank you for your information – I’ve definitely picked up anything
    new from right here. I did however expertise a few technical points using this web site, since I experienced to reload the site lots of times previous to I could get it to load properly.
    I had been wondering if your web hosting is OK? Not that I am complaining,
    but sluggish loading instances times will very frequently
    affect your placement in google and can damage your high
    quality score if advertising and marketing with Adwords.

    Well I’m adding this RSS to my e-mail and could look out for much more of your respective exciting content.
    Ensure that you update this again soon.

  8. whoah this blog is fantastic i like studying your articles.
    Keep up the great work! You realize, a lot of persons are searching
    round for this info, you can help them greatly.

  9. Definitely believe that that you stated. Your favourite justification seemed to be at the
    web the simplest factor to keep in mind of. I say to you, I
    definitely get irked whilst people think about worries
    that they just don’t recognize about. You managed to hit the nail upon the top and defined
    out the whole thing with no need side effect , other people can take a signal.
    Will probably be back to get more. Thanks

  10. Hi there! I could have sworn I’ve been to this website before but after browsing through
    some of the post I realized it’s new to me. Nonetheless,
    I’m definitely delighted I found it and I’ll
    be bookmarking and checking back frequently!

  11. You really make it seem so easy with your presentation but I find this topic to be
    actually something that I think I would never understand.

    It seems too complex and very broad for me. I’m looking forward for your next post,
    I will try to get the hang of it!

  12. hello there and thank you for your information – I have definitely picked up something new from right here.
    I did however expertise some technical issues using this site,
    as I experienced to reload the web site a
    lot of times previous to I could get it to load properly.
    I had been wondering if your hosting is OK? Not that I’m complaining, but
    slow loading instances times will often affect your
    placement in google and can damage your quality score if advertising and marketing with Adwords.

    Well I’m adding this RSS to my e-mail and can look out for a lot more of your respective intriguing content.
    Make sure you update this again very soon.

  13. I got this website from my friend who informed me concerning this website and now this time I am browsing this web page and reading very informative content at
    this time.

Leave a Reply

Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124