Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Installing on a Linux/Unix Server / Moving zencart from subfolder to root

Moving zencart from subfolder to root

Locked

Started by vito on 10 Aug 2008, 1:15 AM · Views: 7,411

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
10 Aug 2008, 1:15 AM
#1
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Moving zencart from subfolder to root

I want to install zencart in a live site, but I don't want to disrupt the existing site until all is configured/set up with products, etc. I am guessing that the easiest way is to install the store in a subfolder, set up the store, then change the config files to move all to root. Would this be correct?

If so, after searching the forum here, I believe that all I have to do when ready to move is to edit configure.php and includes/configure.php? Please let me know if I have it all straight.

Thanks in advance.

Vito

BTW, I am wondering if I should install manually or do it via Fantastico. Any drawbacks to doing it through the auto-installer?

10 Aug 2008, 1:23 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Moving zencart from subfolder to root

In moving site around between folders, there are a couple more things involved beyond just editing the configure.php files.
The FAQ discussing relocation is here: https://www.zen-cart.com/tutorials/index.php?article=122

.
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.

10 Aug 2008, 1:24 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Moving zencart from subfolder to root

vito:

BTW, I am wondering if I should install manually or do it via Fantastico. Any drawbacks to doing it through the auto-installer?

You have more control doing it via the zc_install process.

.
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.

10 Aug 2008, 1:46 AM
#4
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Moving zencart from subfolder to root

Thanks, DrByte.

So if I understand correctly, aside from editing the 2 config files (including changing permissions to writeable and then back), and also changing the Session Directory in Admin > Configuration > Sessions, I'm good to go?

Vito

27 Aug 2008, 7:16 PM
#5
chaddb avatar

chaddb

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Moving zencart from subfolder to root

I followed that FAQ and it didn't work, all of my links are returning 404 errors, but the search function seems to be working properly. Is there something thisFAQ missed:

https://www.zen-cart.com/tutorials/index.php?article=122

I followed those directions exactly, and have rechecked the settings about 10x, everything looks correct as far as i can tell.

27 Aug 2008, 7:48 PM
#6
chaddb avatar

chaddb

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Moving zencart from subfolder to root

I solved my own problem, forgot to copy the .htaccess files

27 Aug 2008, 7:56 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Moving zencart from subfolder to root

Thanks for posting your solution. It'll keep someone else from :frusty:

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

3 Oct 2008, 5:24 AM
#8
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Moving zencart from subfolder to root

The move went perfectly. Cool. https://www.bowbiz.ca

FYI, if using CuteFTP, moving the site files from a subfolder to root is very easy. On the server, select all files in the subfolder (eg store), right click all files and select MOVE. Enter the root directory and the files will be moved to root. Done. It's then just a matter of editing all the config files to show the new directory.

Vito