Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Moved store into folder for updating. Both store registering updates

Moved store into folder for updating. Both store registering updates

Views: 1,477

Results 1 to 7 of 7
21 Jan 2011, 12:13 AM
#1
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Moved store into folder for updating. Both store registering updates

Hi. Thanks in advance for any help on this topic.

I want to copy my store to a test folder to do further work on the layout design. I should have had a test store to begin with but didn't. Right now its installed in my public_html folder. So, I've created a folder called TESTME in my public_html folder, copied all the zencart files into that folder, and followed the directions on this tutorial https://www.zen-cart.com/tutorials/index.php?article=122 changing the paths in both the configure.php files and the cache path in Configuration/Sessions in the Admin.

But when I'm in the ZenCart Admin and I click "Online Catalog" my original store is displayed _www.mysite.com/index.php. I can see the TESTME site if I manually type _www.mysite.com/TESTME/index.php into the browser though.

This is the strange thing. When I go to CONFIGURATION/LAYOUT SETTINGS and change the width of the left column, both layouts change. What can I do to be able to work on my /TESTME/ store without affecting my original store and how do I get the "Online Catalog" link to bring up my TESTME/index.php file?

Is possible to have 2 versions of store on the same server even?

Thanks!

21 Jan 2011, 12:21 AM
#2
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: Moved store into folder for updating. Both store registering updates

you just need to make sure that both of your configure.php files has been modified

  1. admin>>includes>>configure.php
  2. includes>>configure.php

and change the http and https server(if applicable)
also link to your admin folder....

21 Jan 2011, 12:29 AM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Moved store into folder for updating. Both store registering updates

Both stores are using the same database.

Remember that file permissions of both config files is probably 444 which means no changes will take effect. Change both file permissions to 644, make your changes, verify the changes took effect, change file permissions of (now) all 4 config files to 444.

21 Jan 2011, 2:42 AM
#4
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: Moved store into folder for updating. Both store registering updates

gaurav10feb:

you just need to make sure that both of your configure.php files has been modified

  1. admin>>includes>>configure.php
  2. includes>>configure.php

and change the http and https server(if applicable)
also link to your admin folder....

I changed the permissions on both config files (thanks Website Rob) and they've both been properly modified. The online catalogue link is still showing my original store instead of the one I've moved to TESTME/ folder.

gaurav10feb, where do I make the change to the http and https server and the link to my admin folder?

21 Jan 2011, 1:28 PM
#5
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Moved store into folder for updating. Both store registering updates

Just to confirm, you have created a new database for your test Store and that database information is being used in both config files for the 'TESTME' folder. Is that correct?

After verifying the test database is being used and to help keep things separate, change the following in your Test Store.

Admin > Configuration > My Store
Store Name : My Test Store

Now you need only to check the Contact Us page to see the Store Name for which site you are using.

Also, make sure to Password Protect the 'TESTME' dir. so no one has access but you; save yourself a whole mess of new problems. That can be done through your Hosting Control Panel.

21 Jan 2011, 4:14 PM
#6
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: Moved store into folder for updating. Both store registering updates

I just created a new database through MySQLDatabases in my hosting control panel. I still can't get my Zencart Admin to point to my new folder TESTME. I did the Fix Cache Key and it came out reading the correct path.

I'm gonna start from scratch and go through the steps again.

Thanks for you help!

22 Jan 2011, 6:38 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Moved store into folder for updating. Both store registering updates

You need to create a COPY (duplicate) of the database as well as a COPY (duplicate) of all the files.

I go about it this way.

Step 1.
Create a new (empty) database in C-panel, assigning the same user and password as that configured for my existing ZC database.

Step 2.
Using phpMyAdmin (Operations "Copy a database" Function), I copy the content of the existing database, into the NEW database. Make sure that you uncheck the checkbox that says "Create Database" - (You have already done this, you just need to copy the content.

This takes two minutes (or less)...

Step 3.
Using the C-Panel, I COPY the active zencart installation into a sub-folder. (Looks like you go this bit right).

Step 4
Make sure all the folders in the copied zc are chmod correctly. Then chmod the two configure.php files to 644 .

Step 5
Edit the two configure.php files to show the new PATH (where relevant) to the cloned files. Also, change the database name.

Whole process to clone ZC to a new sub-directory should take no more than 7 minutes.

Last step... go to your cloned store admin panel and under CONFIGURATION >>> SESSIONS, change the path to the cache folder.