Zen Cart Logo
Forums / General Questions / Renaming directory

Renaming directory

Locked

Views: 1,990

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
22 Apr 2008, 2:56 PM
#1
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Renaming directory

Before I start messing up my zen cart store, I hope someone can help answer this question:

I now have my store under a directory:

www.mystore/zencart/

I now want to change the directory of zencart into "store". So it would look like this

www.mystore/store/

Is it as easy as just renaming it or will there be a host of other stuff to rename and change? :blink:

22 Apr 2008, 3:01 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Renaming directory

As long as you manually have not added hard paths to any files or to images in the admin or to the stylesheet.css files then you only need to edit the folder name in the path's in your 2 configure.php files

Relative paths are ok

22 Apr 2008, 5:25 PM
#3
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Renaming directory

Thank you kobra! Would you let me know which files exactly and where they are located? The configure.php in admin did not include any path? Or am I missing something? Thanks for your help!

kobra:

As long as you manually have not added hard paths to any files or to images in the admin or to the stylesheet.css files then you only need to edit the folder name in the path's in your 2 configure.php files

Relative paths are ok

22 Apr 2008, 6:43 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Renaming directory

In /includes/configure.php and similarly in /admin/includes/configure.php, find this:php // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/zencart/'); define('DIR_WS_HTTPS_CATALOG', '/zencart/'); and change to this:```php
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/store/');


Also this```php
// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', 'C:/xampp/htdocs/zencart/'); //(whatever your path is)
```to this```php
// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', 'C:/xampp/htdocs/store/');
22 Apr 2008, 7:17 PM
#5
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Renaming directory

I'm using zencart version 1.3.8a and found that the files are named differently and actually doesn't show the name of the path:

admin/includes/configure.php is named dist-configure.php and the path below looks like this:

// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/admin/');
define('DIR_FS_CATALOG', '/');

doesn't mention my path /zencart/ therefore does that mean I need not chaneg anything except for those I hard coded in html pages?

gjh42:

In /includes/configure.php and similarly in /admin/includes/configure.php, find this:php // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/zencart/'); define('DIR_WS_HTTPS_CATALOG', '/zencart/'); and change to this:```php
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/store/');

> 
> Also this```php
// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', 'C:/xampp/htdocs/zencart/'); //(whatever your path is)
```to this```php
// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', 'C:/xampp/htdocs/store/');
22 Apr 2008, 7:44 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Renaming directory

dist-configure.php is the "virgin" copy of configure.php, which will be renamed by the installer and supplied with the actual info for your installation.
So that file is irrelevant to the question. You need to look in /admin/includes/configure.php in your actual store files.

22 Apr 2008, 9:31 PM
#7
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Renaming directory

Or, perhaps you didnt even install ZC yet? In that case simply rename then start the install process.

23 Apr 2008, 2:59 PM
#8
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Renaming directory

Great! My mistake was I was using the virgin file in my computer and not getting the files from the store.

In addition to above, I also had to make changes in the following files:
DIR_FS_SQL_CACHE
DIR_FS_ADMIN
DIR_WS_ADMIN
DIR_WS_HTTP_ADMIN

Also had to change permission number to 444 for the configure.php files...I learned otherwise you have this big red warning on the main page when you go to it!