If this is your first visit, check our documentation. To post, register or login.
Forums / Code Collaboration / Moving from live server to localhost issues

Moving from live server to localhost issues

Started by wolfderby on 19 Jul 2020, 5:35 AM · Views: 1,934

Results 1 to 6 of 6
19 Jul 2020, 5:35 AM
#1
wolfderby avatar

wolfderby

Zen Follower

Join Date:
Dec 2008
Location:
Pittsburgh, PA
Posts:
241
Plugin Contributions:
0

Moving from live server to localhost issues

I want to start trying to switch up my workflow to localhosting w/ git and then pushing to github and my server w/ a service hook, as the end goal.

I've downloaded my files and my database onto my comp, have my db installed in localhost/phpmyadmin w/ xampp running apache and mysql.

I installed a fresh zen-cart 1.5.6... then I copied my files overtop of those keeping the configure.php files from the install, but when I try to use the fix_cache_key.php utility it keeps loading my live domain. like mysite.com instead of localhost/zen156/fix_cache_key.php gets kicked to mysite.com/fix_cache_key.php (which obviously isn't on my server)

19 Jul 2020, 6:42 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Moving from live server to localhost issues

I thought that fix_cache_key utility was no longer necessary from say 1.5.3 on?!

Sure that there isn't some record in either of includes/local or admin/includes/local that also was copied over and referenced the older/other site?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Jul 2020, 6:50 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Moving from live server to localhost issues

MC is correct - you won't need fix cache key anymore
Be sure your local configure.php files reference your WAMP environment and not your live environment.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Jul 2020, 11:51 AM
#4
wolfderby avatar

wolfderby

Zen Follower

Join Date:
Dec 2008
Location:
Pittsburgh, PA
Posts:
241
Plugin Contributions:
0

Re: Moving from live server to localhost issues

I think it was an issue w/ the .htaccess file RewriteCond and browser caching it.

19 Jul 2020, 11:51 AM
#5
wolfderby avatar

wolfderby

Zen Follower

Join Date:
Dec 2008
Location:
Pittsburgh, PA
Posts:
241
Plugin Contributions:
0

Re: Moving from live server to localhost issues

thanks for your thoughts/time on it though (:

19 Jul 2020, 3:57 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Moving from live server to localhost issues

Right that's another file that differs between local and live. Be sure when you set up your auto deploy that these files are passed over.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.