Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Zen Admin not looking in correct Folder

Zen Admin not looking in correct Folder

Locked

Views: 1,411

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 Jul 2008, 3:28 AM
#1
adamtow avatar

adamtow

New Zenner

Join Date:
Jun 2008
Location:
Queensland, Australia
Posts:
16
Plugin Contributions:
0

Zen Admin not looking in correct Folder

Friends,
I have setup my site under a sub folder under public_html but when using Admin in Zencart it still only looks at the public_html folder and not my 'shoptest' folder.

I have done all of the changes to the config files as outlined in another thread and changed the sessions folder in Admin.

As an example of the problem though, when I use Define Page Editor it doesn't look in my shoptest subdirectory. Is it possible to make it do that?

I think the problem also impacts on when you are trying to customise modules etc.

I don't want to down the track move my shoptest directory back to public_html and lose customisations made there.

10 Jul 2008, 4:26 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Zen Admin not looking in correct Folder

please post your admin configure.php ( EXCEPT the database info )

10 Jul 2008, 4:38 AM
#3
adamtow avatar

adamtow

New Zenner

Join Date:
Jun 2008
Location:
Queensland, Australia
Posts:
16
Plugin Contributions:
0

Re: Zen Admin not looking in correct Folder

Thanks, Please see below.

define('HTTP_SERVER', 'http://nutrilick.com.au');
define('HTTPS_SERVER', 'https://nutrilick.com.au');
define('HTTP_CATALOG_SERVER', 'http://nutrilick.com.au');
define('HTTPS_CATALOG_SERVER', 'https://nutrilick.com.au');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', '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_ADMIN', '/shoptest/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/shoptest/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * 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', '/home/nutrili/public_html/shoptest/admin/');
define('DIR_FS_CATALOG', '/home/nutrili/public_html/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'xxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'database');
define('DIR_FS_SQL_CACHE', '/home/nutrili/public_html/cache');

// EOF

10 Jul 2008, 4:52 AM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Zen Admin not looking in correct Folder

If it's any help, I had this problem once. It came down to the SQL dump had my old database information (naturally) and the config files had the same information. But the problem was, that this was NOT the name, user, or password of the NEW database. So, you might double-check these settings to make SURE they are correct for the new database:

define('DB_SERVER_USERNAME', 'xxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'xxxxx');

Hope this helps.

But, while I was writing this, Merlin probably just solved your problem. Listen to him.......Hell, he host's my sites. :)

10 Jul 2008, 4:53 AM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Zen Admin not looking in correct Folder

try this

define('DIR_WS_ADMIN', '/shoptest/admin/');
define('DIR_WS_CATALOG', '/shoptest/');
define('DIR_WS_HTTPS_ADMIN', '/shoptest/admin/');
define('DIR_WS_HTTPS_CATALOG', '/shoptest/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * 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', '/home/nutrili/public_html/shoptest/admin/');
define('DIR_FS_CATALOG', '/home/nutrili/public_html/shoptest/')
10 Jul 2008, 6:38 AM
#6
adamtow avatar

adamtow

New Zenner

Join Date:
Jun 2008
Location:
Queensland, Australia
Posts:
16
Plugin Contributions:
0

Re: Zen Admin not looking in correct Folder

Merlin,
You are indeed a magician. It works perfectly.

Thanks for your assistance
A