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:
10 Steps to Successfully Clone Magento Store
- First, create the subdomain or add a new folder in the root directory of your site.
- 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.
- Open phpMyAdmin and duplicate the database.
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.
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.