Originally Posted by
msbfrnj
Hi, I want to copy my current Zen Cart store (with all it's plugins) to another directory. What I'm trying to do is create different product stores. My current store has no products in it yet. So I was thinking I could just copy my current store directory as many times as I needed and use the copied store directories after renaming them. I found out that I have to change the configure files. I found this old reply about how to do it back in '08. Before I proceed, I wanted to know:
1. Is this info still pertinent for today (I mean is there more to it) AND
2. Am I going about it in the right way for what I'm trying to do.
Thanks so much
Brenda
" Default Re: How to Duplicate Zen Cart shop directory (same server) ?
The FAQ on copying data to/from an offline testing server, usually a PC, covers the same process, but instructs to use FTP to copy the files, since that's what most people have available to them. Most don't have SSH access let alone the knowledge to use command-line instructions on a Linux server.
Basically the process is this:
1. Clone the files. Since you're working on the same server and same hosting account, AND you have shell access to your server, using your command-line "cp" approach is fine.
2. Edit the cloned configure.php files to contain the correct database details for your testing database.
3. Use phpMyAdmin to export your live database using the FAQ instructions.
4. Use phpMyAdmin to restore your database backup into the database used for your testing site.
5. Since you're running on the same server and hosting account, it's unlikely that you'll need to use fix_cache_key.php on your site"
Bookmarks