Forums / General Questions / Changing Server Folder Name

Changing Server Folder Name

Locked

Started by mike123acc on 25 Jan 2008, 10:42 AM · Views: 2,392

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Jan 2008, 10:42 AM
#1
mike123acc avatar

mike123acc

New Zenner

Join Date:
Jan 2008
Posts:
22
Plugin Contributions:
0

Changing Server Folder Name

Hi all

Could anyone tell me how I might be able to change the name of the folder I installed Zen Cart in (host uses cPanel)?

It is a folder in my 'public_html' folder, called 'ZenCart'. I just want to rename it to 'Store'. (my plan is to use Zen Cart as store only, linked to the main non-Zen cart site).

I realise I can't just rename the folder in cPanel (I did try that though). I am hoping I can do this without losing all the configuration changes I have made......

Any help would be greatly appreciated.

25 Jan 2008, 10:54 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Changing Server Folder Name

Did you install ZenCart manually or use Fantastico via CPanel?

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

25 Jan 2008, 12:53 PM
#3
mike123acc avatar

mike123acc

New Zenner

Join Date:
Jan 2008
Posts:
22
Plugin Contributions:
0

Re: Changing Server Folder Name

Through Fantastico.

25 Jan 2008, 3:22 PM
#4
dwells avatar

dwells

Zen Follower

Join Date:
Nov 2007
Location:
Burney, CA. USA
Posts:
130
Plugin Contributions:
2

Re: Changing Server Folder Name

Mike123acc:

Hi all

Could anyone tell me how I might be able to change the name of the folder I installed Zen Cart in (host uses cPanel)?

It is a folder in my 'public_html' folder, called 'ZenCart'. I just want to rename it to 'Store'. (my plan is to use Zen Cart as store only, linked to the main non-Zen cart site).

I realise I can't just rename the folder in cPanel (I did try that though). I am hoping I can do this without losing all the configuration changes I have made......

Any help would be greatly appreciated.

Using a program like FileZilla can change the name of the folder from ZenCart to store.

But after making that change, to keep the store in-tact you will have to edit your "configure.php" files to reflect the change.

In: "../admin/includes/configure.php" you will (should) need to change 7 lines:
Lines 41 - 44
Lines 60 & 61
Line 88

In: "../includes/configure.php" you will need to also change:
Lines 25 & 26
Line 41
Line 66

I am pretty sure those are the only changes needed in those files, but incase I missed a line you will need to change any line where you see the old folder name, you will need to replace with the new folders name. remember after editing these files to reset permissions to 444.

After making the above changes you will be able to point your browser to the new folder and be able to access your store. (If you have any hard coded images you will also have to change the addresses to those images to make them show properly).

Patience is Virtue...
ShopWells.com

Current Version of Zen Cart: 1.3.8a

25 Jan 2008, 4:15 PM
#5
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Changing Server Folder Name

Mike123acc:

Through Fantastico.
Changing folder name, where Fantastico installed, may cause problems
if you attempt a future zencart upgrade, using Fantastico..

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

25 Jan 2008, 5:37 PM
#6
forum5 avatar

forum5

Zen Follower

Join Date:
Jul 2006
Location:
Louisiana
Posts:
147
Plugin Contributions:
0

Re: Changing Server Folder Name

Mike123acc:

Hi all

Could anyone tell me how I might be able to change the name of the folder I installed Zen Cart in (host uses cPanel)?

It is a folder in my 'public_html' folder, called 'ZenCart'. I just want to rename it to 'Store'. (my plan is to use Zen Cart as store only, linked to the main non-Zen cart site).

I realise I can't just rename the folder in cPanel (I did try that though). I am hoping I can do this without losing all the configuration changes I have made......

Any help would be greatly appreciated.

I have had the same situation. You can put the current store in maintenance through <configuration> or
place the store in View Only,
<Configuration> <My Sotre> <Store Status>
then re-install another copy into another folder (Store) and access the original/same SQL data base. Once installed properly, delete the bad (ZenCart) folder.

There will be some files and folders that you can not easily delete that contain '.htaccess' but if you [FTP] to the folder you can change and delete these files.