Totally Zenned
- Join Date:
- Sep 2004
- Posts:
- 496
- Plugin Contributions:
- 0
Running copy of a ZC store on local machine...
Hi,
I just downloaded a copy of a live ZC store & database from Linux server onto my local machine. I also have phpMyAdmin running on my local machine with the WAMP package, my Windows XP machine is now running apache locally, and I can see / edit the store database I downloaded onto local PC in phpMyAdmin. My local apache install is able to browse local html. Php, css etc. I’d like to do some experimenting with stylesheet editing on the local machine, just so I can learn the ZC css layouts like the back of my hand, without having to do live edits on the store, until I have everything designed the way I want it. I was thinking then I could – after editing on local machine, upload the new stylesheet(s) all at once. I would also like to make some layout changes by logging into admin locally, make some changes, and then upload the database changes as well when they are done. Is this a crazy way to do it?
In order to see the store on localhost via browser just as it appears live on server, I know I have to edit configure.php and includes/configure.php and reset the paths. Are these the only two pages I would need to edit in order for the site to show locally?
When I first visited http://localhost/store the below page came up, so I’m assuming this is not too hard to do since ZC gives some basic info on switching servers, so why would there be any difference in running on a local machine...…
Hello. Thank you for loading Zen Cart™.
You are seeing this page for one or more reasons:
- This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).- Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.
Anyway, I tried resetting the paths per the paths on my local machine, but that did not work. Maybe it's just a minor typo in the two configures? Or is there more to this than the two configure.php's?
Or are there more hooks – paths to reset from the php code into the database, that also need to be changed with the new path information?
Or maybe I’m doing this the wrong way. Would it be better to just install a new store on the local machine from scratch, and then import the database into the newly created store? Or would the differing installation also break hooks – paths from new php setup php to existing database? Which method would be quicker – easier? I don’t mind editing paths, but if there are hundreds to do, then …
Happy to be a Zen Cart Monthly Donor! :)