Zen Cart Logo
Forums / General Questions / Trying to move cart folder on same server

Trying to move cart folder on same server

Views: 1,049

Results 1 to 7 of 7
15 Aug 2014, 2:59 PM
#1
brett avatar

brett

New Zenner

Join Date:
Aug 2014
Location:
Santa Fe, TX
Posts:
5
Plugin Contributions:
0

Trying to move cart folder on same server

I am trying to move my cart from the public_html/cart_name folder to a different folder which would be public_html/new_folder/cart_name

When I did I followed this thread for assistance http://www.zen-cart.com/wiki/index.php/Server_Admin_-_Change_Folders

I did the changes it stated and tried to log into the cart and got a 500 INTERNAL SERVER ERROR message. I finally had to reload the cart to the original location so I would not lose business, but I need to move the cart.

If I load new cart files (being the same version of ZenCart) what files would I need to bring over to keep my customer base and the orders that have already been made....I would like to move it to avoid this long way around though....Pulling whats left of my hair out....

15 Aug 2014, 4:00 PM
#2
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Trying to move cart folder on same server

Brett:

I am trying to move my cart from the public_html/cart_name folder to a different folder which would be public_html/new_folder/cart_name

When I did I followed this thread for assistance http://www.zen-cart.com/wiki/index.php/Server_Admin_-_Change_Folders

I did the changes it stated and tried to log into the cart and got a 500 INTERNAL SERVER ERROR message. I finally had to reload the cart to the original location so I would not lose business, but I need to move the cart.
That Wiki is OLD and the information out dated.. You don't say what version of Zen Cart you are running.. (Makes a HUGE difference) this is pretty easy though.. find all the defines in your configure.php file with a file path, and update them to match the new path..

Brett:

If I load new cart files (being the same version of ZenCart) what files would I need to bring over to keep my customer base and the orders that have already been made....I would like to move it to avoid this long way around though....Pulling whats left of my hair out....Long way.. so you're looking for a shortcut eh??

there is no shortcut..

If you want to move your store to a new folder, you move ALL the files, and update the configure.php with the new path location..

15 Aug 2014, 11:10 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Trying to move cart folder on same server

DivaVocals:

That Wiki is OLD and the information out dated.. You don't say what version of Zen Cart you are running.. (Makes a HUGE difference) this is pretty easy though.. find all the defines in your configure.php file with a file path, and update them to match the new path..

Long way.. so you're looking for a shortcut eh??

there is no shortcut..

If you want to move your store to a new folder, you move ALL the files, and update the configure.php with the new path location..

My recommendation to not miss a beat would be to copy all of the files over to the new location, make the changes that Diva said to make then after testing the site using the new uri, make whatever other changes you need to redirect customers to that location whether it is to update where your domain points (the new sub-folder) or whatever. Between the time of copying and setting the new location as live, don't load any new files or products. (If a new product with an image is loaded in one store, the file for the image would need to be loaded into the other.). Once the new location is active, you will have all of the data present in both store locations and can remove the files from the previous location or in some way keep it to create a development location, but will need a new database so as not to interfere with your active store.

16 Aug 2014, 2:00 PM
#4
brett avatar

brett

New Zenner

Join Date:
Aug 2014
Location:
Santa Fe, TX
Posts:
5
Plugin Contributions:
0

Re: Trying to move cart folder on same server

I am using 1.5.1

16 Aug 2014, 3:40 PM
#5
brett avatar

brett

New Zenner

Join Date:
Aug 2014
Location:
Santa Fe, TX
Posts:
5
Plugin Contributions:
0

Re: Trying to move cart folder on same server

DivaVocals:

That Wiki is OLD and the information out dated.. You don't say what version of Zen Cart you are running.. (Makes a HUGE difference) this is pretty easy though.. find all the defines in your configure.php file with a file path, and update them to match the new path..

Long way.. so you're looking for a shortcut eh??

there is no shortcut..

If you want to move your store to a new folder, you move ALL the files, and update the configure.php with the new path location..

I am using 1.5.1

Are these the files I am supposed to change: Moving your site to another folder on your server

Determine the new foldername where your Zen Cart® files will be running from
Go into Admin > Configuration > Sessions and change the Session Directory to reflect the new folder name. If you cannot do this, see the alternate approach in step 5 below.
Move/Rename the folder. You may need to use your FTP program to do this.
Your /includes/configure.php and /admin/includes/configure.php files are used to point Zen Cart® to the right folders. In that file, you need to update several entries to match the new path information:
DIR_WS_CATALOG
DIR_WS_HTTPS_CATALOG
DIR_FS_CATALOG
DIR_FS_LOGS (since v1.5.0)
DIR_FS_SQL_CACHE

16 Aug 2014, 4:24 PM
#6
brett avatar

brett

New Zenner

Join Date:
Aug 2014
Location:
Santa Fe, TX
Posts:
5
Plugin Contributions:
0

Re: Trying to move cart folder on same server

Brett:

I am using 1.5.1

Are these the files I am supposed to change: Moving your site to another folder on your server

Determine the new foldername where your Zen Cart® files will be running from
Go into Admin > Configuration > Sessions and change the Session Directory to reflect the new folder name. If you cannot do this, see the alternate approach in step 5 below.
Move/Rename the folder. You may need to use your FTP program to do this.
Your /includes/configure.php and /admin/includes/configure.php files are used to point Zen Cart® to the right folders. In that file, you need to update several entries to match the new path information:
DIR_WS_CATALOG
DIR_WS_HTTPS_CATALOG
DIR_FS_CATALOG
DIR_FS_LOGS (since v1.5.0)
DIR_FS_SQL_CACHE

I made these changes after I moved the files as opposed to prior to moving them and that seems to have worked....thanks for all the help.

16 Aug 2014, 4:36 PM
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Trying to move cart folder on same server

Brett:

I made these changes after I moved the files as opposed to prior to moving them and that seems to have worked....thanks for all the help.

Not for nothing but the instructions are meant to guide on what you need to do AFTER you copy the files over.. You don't make these changes to your live site and THEN copy them over..

Again.. the instructions you are using are OLD.. and OUTDATED and not based on v1.5.1

In particular these defines DO NOT require changes in the configure.php file when moving your site..
DIR_FS_LOGS (since v1.5.0)
DIR_FS_SQL_CACHE

These SHOULD look like this:
define('DIR_FS_LOGS', DIR_FS_CATALOG . 'logs');
define('DIR_FS_SQL_CACHE', DIR_FS_CATALOG . 'cache');