Forums / Basic Configuration / confused, please help!

confused, please help!

Locked

Started by emijean on 25 Sep 2008, 4:24 PM · Views: 3,622

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
25 Sep 2008, 4:24 PM
#1
emijean avatar

emijean

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

confused, please help!

Hi, I move my cart from a directory '/shop/' to my base folder '/' ... everyhing worked fine except now when i goto http://hemptent.com/admin it redirects to this: http://hemptent.comdir_ws_adminlogin.php/ which of course throws up a page load error...

I guessed there must be something wrong in my /admin/includes/configure.php but I can't find anything.... so I'm really confused because I've never seen anything like this before.

Any ideas???

Thanks so much,
Emily

25 Sep 2008, 4:42 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: confused, please help!

Did you change the sessions directory as outlined in https://www.zen-cart.com/tutorials/index.php?article=122?

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

25 Sep 2008, 5:29 PM
#3
emijean avatar

emijean

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: confused, please help!

Yes, before I started, I've also run the fix_cache_key file in the base directory.

25 Sep 2008, 6:42 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: confused, please help!

Hmmm.. can you post the admin/includes/configure.php removing any sensitive info (like passwords)?

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

25 Sep 2008, 9:25 PM
#5
emijean avatar

emijean

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: confused, please help!

Okay, thanks for the assistance...

<?php /** * dist-configure.php * * @package Configuration Settings * @package Admin * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $ * @private */ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com /* * URL's for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings * * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following: */ define('HTTP_SERVER', 'http://hemptent.com'); define('HTTPS_SERVER', 'https://hemptent.com'); define('HTTP_CATALOG_SERVER', 'http://hemptent.com'); define('HTTPS_CATALOG_SERVER', 'https://hemptent.com'); // 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', '/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_ADMIN', '/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/content/e/m/i/emijean/html/hemptent/admin/'); define('DIR_FS_CATALOG', '/home/content/e/m/i/emijean/html/hemptent/'); 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', 'p50mysql215.secureserver.net'); define('DB_SERVER_USERNAME', '*****************'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', '*************'); define('USE_PCONNECT', 'false'); 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', 'none'); define('DIR_FS_SQL_CACHE', '/home/content/e/m/i/emijean/html/hemptent/cache'); ?>
3 Oct 2008, 2:43 PM
#6
emijean avatar

emijean

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: confused, please help!

Anyone?

4 Oct 2008, 4:06 PM
#7
steve_1 avatar

steve_1

Zen Follower

Join Date:
Sep 2008
Location:
London UK
Posts:
100
Plugin Contributions:
0

Re: confused, please help!

probably a stupid reply but are you sure the admin folder was uploaded (and all other files/folders) ?

4 Oct 2008, 5:22 PM
#8
emijean avatar

emijean

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: confused, please help!

yes. everything is there.

4 Oct 2008, 8:36 PM
#9
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: confused, please help!

emijean:

yes. everything is there.

If you moved to base folder then this,

define('DIR_FS_ADMIN', '/home/content/e/m/i/emijean/html/hemptent/admin/');
define('DIR_FS_CATALOG', '/home/content/e/m/i/emijean/html/hemptent/');should be,

define('DIR_FS_ADMIN', '/home/content/e/m/i/emijean/html/admin/');
 define('DIR_FS_CATALOG', '/home/content/e/m/i/emijean/html/'); 
```That's assuming you're following some order such as 

/vhost/accountname/public_html/store/

and changed to 

/vhost/accountname/public_html/

That's the only thing I can see with your configure...

Dave
Always forward thinking... Lost my mind!

5 Oct 2008, 6:36 AM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: confused, please help!

Adding to what Dave just posted, you also need to change the last line in both your config files.

Incorrect
define('DIR_FS_SQL_CACHE', '/home/content/e/m/i/emijean/html/hemptent/cache');

Correct
define('DIR_FS_SQL_CACHE', '/home/content/e/m/i/emijean/html/cache');

The learning is in the doing.

Potent Products

5 Oct 2008, 8:10 AM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: confused, please help!

It looks like you have lost a line break in your configure file:

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

If the window is the right width, the define('DIR_WS_ADMIN', '/admin/'); statement appears on its own line, but if the window is wide enough or narrow enough (or in PHP code highlighting mode), you will see that there is only a space between
httpdocs folder)
and
define('DIR_WS_ADMIN', '/admin/');
meaning that that statement is part of the comment above it and not being defined.

5 Oct 2008, 5:33 PM
#12
emijean avatar

emijean

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: confused, please help!

actually the domain is pointed to the /hemptent/ folder because i'm sharing the hosting with my other domains, and that's why that's there.

Emily

5 Oct 2008, 5:37 PM
#13
emijean avatar

emijean

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: confused, please help!

yes, yes, YES! Thank-you Glenn, you found it! That fixed it! It seems so simple now, I knew it must be some small thing but I didn't know to re-size the window, I'm a noOb! I'll know for nexttime, although I hope this doesn't happen again :P

Thanks everyone for taking the time to help me :)

Peace and blessings,
Emily