Forums / Templates, Stylesheets, Page Layout / Local copy. Problems copy subdirs over.

Local copy. Problems copy subdirs over.

Locked

Started by bakerman on 24 Sep 2007, 12:22 PM · Views: 1,981

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
24 Sep 2007, 12:22 PM
#1
bakerman avatar

bakerman

New Zenner

Join Date:
Sep 2007
Posts:
15
Plugin Contributions:
0

Local copy. Problems copy subdirs over.

So, I have set up a Zen shop locally using xampp, php, mySQL. No problems there. I had a front page and was finding my way through things.

The big problem is that when I copy the shop directory from my site to my local copy it never seems to work. I just get the re-install option when I reuse the test store's bookmark. The admin link does not work either. Even when I change the url to local: localhost/store/index.php it does not work. The files are there but nothing!

I have re-edited configure.php file to point at all the local data but sytill nothing. I was told that just copying down subdirs etc. would just work but I am no wiser. What am I doing wrong as I don't want to go through everything I have done on my live server just to have it locally.

the url is: http://localhost/testStore/index.php
url: http://localhost/testStore/ does not work either
with testStore being the Zen directory

Any ideas?

24 Sep 2007, 12:46 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Local copy. Problems copy subdirs over.

First - you copied the files - but did you also create and restore the database?

If you did then follow this:

First rename the teststore dir to something else. Then make another empty dir named teststore.

Copy the distribution ZenCart files to that dir, create a fresh DB and and install.
Grab the 2 configure.php files(copy) and place them in the original testore where they belong.

Now remname the dir tht you just installed to to something else and the original back to teststore. Restore your DB from your server to this DB with phpmyadmin and you should be good to go.

Review the configure.php file entries to see what is different from the latest install.

Zen-Venom Get Bitten

24 Sep 2007, 1:25 PM
#3
bakerman avatar

bakerman

New Zenner

Join Date:
Sep 2007
Posts:
15
Plugin Contributions:
0

Re: Local copy. Problems copy subdirs over.

Err... here comes the dumb question but did I need to do something with the mySQL database? I did nothing.

I made a copy of the testStore folder (the just installed one) on my local pc, then I copied the testStore folder from my live site over it. Copied the configure.php in the includes folders so it pointed to local dirs.

(Sorry, repeating myself) But before I go through the rest of your post I noted the reference to the database, hence my question.

BTW, before I got your reply I kinda got it working on my local pc BUT the admin link still returns an error page:

Warning: require(/home/<my live account name>/public_html/shop/includes/autoload_func.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\testStore\admin\includes\application_top.php on line 147

Fatal error: require() [function.require]: Failed opening required '/home/<my live account name>/public_html/shop/includes/autoload_func.php' (include_path='.;C:\xampp\php\pear') in C:\xampp\htdocs\testStore\admin\includes\application_top.php on line 147

Thanks in advance for your patience. Getting there.

24 Sep 2007, 6:22 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Local copy. Problems copy subdirs over.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.