Zen Cart Logo
Forums / General Questions / Want to confirm proper new directory coding...

Want to confirm proper new directory coding...

Views: 420

Results 1 to 2 of 2
23 Dec 2011, 12:09 AM
#1
andycowboy avatar

andycowboy

New Zenner

Join Date:
Jul 2009
Location:
Wimberley, TX
Posts:
50
Plugin Contributions:
0

Want to confirm proper new directory coding...

Hey, everyone!

I did this once before and locked myself out of the admin panel...want to make sure what I'm doing so I don't foul up again!

Using zc v1.3.9h w/Glacial Age template

I have read the tutorial on moving the cart to another directory:

I have been building in a directory under shannonwestongifts called "newswgstore". Currently, the Sessions Directory part of admin config shows

/home/content/a/n/d/andycowboy/html/newswgstore/cache.

I ftp'd all files in the "newswgstore"to my local server, then uploaded them into shannonwestongifts. I'm thinking all I have to do in the Sessions Directory is remove the newswgstore portion.

Here's what the configure php shows in shannonwestongifts (based on what the tutorial indicates needs to be changed):

**// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://shannonwestongifts.com');
define('HTTPS_SERVER', 'https://shannonwestongifts.com/');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

// 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', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
**

Do I need to put "/home/content/a/n/d/andycowboy/html/cache/" in those two blank spaces?

*// * 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', 'D:/Hosting/4651002/html/');
**

define('DIR_FS_SQL_CACHE', 'D:/Hosting/4651002/html/cache');

In admin:

**define('DIR_WS_ADMIN', '/shows proper folder name/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/shows proper folder name/');
define('DIR_WS_HTTPS_CATALOG', '/');
**

Do I need to put "/home/content/a/n/d/andycowboy/html/cache/" in those two blank spaces?

*// * 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', 'D:\Hosting\4651002\htmlshows proper folder name/');
define('DIR_FS_CATALOG', 'D:\Hosting\4651002\html/');
**

As always, guidance from y'all is greatly appreciated - I'm having one heck of a time trying to figure out .php!

Have a very Merry Christmas, Happy Chanukah, or Happy Kwaanza - whatever you're celebrating this month - and a very properous New Yaer!

Andy
The Ole Cowboy - Getting Older, But Not Aging
Shannon Weston Gifts and Decor

23 Dec 2011, 12:28 AM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Want to confirm proper new directory coding...

Change this to true:

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

This appears to be wrong:

define('DIR_FS_CATALOG', 'D:/Hosting/4651002/html/');

Should be something like:

define('DIR_FS_CATALOG', '/home/your_username/public_html/');

Same with this:

define('DIR_FS_SQL_CACHE', 'D:/Hosting/4651002/html/cache');

Unless you have some kind of weird hosting. You should verify that path.

These should be forward slashes, not back slashes:

define('DIR_FS_ADMIN', 'D:\Hosting\4651002\html\shows proper folder name/');
define('DIR_FS_CATALOG', 'D:\Hosting\4651002\html/');

And same potential issue with the path.

The best way to learn is to try stuff. But, back it up first.