Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default Need help with Admin configure.php

    I moved my installation directory to the root and now my admin site defaults to the Zen Cart setup page. I thought I was extra careful modifying admin/includes/configure.php but something had to be overlooked. I did a lot of searching on the forum, and tried various changes to no avail. The site, however is working fine.

    Here is the admin/includes/configure.php without db info:

    <?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://www.######.com');
    define('HTTPS_SERVER', 'https://www.#######.com');
    define('HTTP_CATALOG_SERVER', 'http://www.#######.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.#######.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', '/####/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_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/b/o/o/######/html/####/');
    define('DIR_FS_CATALOG', '/home/content/b/o/o/######/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/');

    Any help would be greatly appreciated. Thanks!

  2. #2
    Join Date
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Need help with Admin configure.php

    I found the error where define DB was on a commented line. That got me to the admin login page, but now I can not login to either the admin or the general site. Could this be a sessions issue?

  3. #3
    Join Date
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Need help with Admin configure.php

    It was sessions based. I closed the browser and opened a new browser and it worked fine.

 

 

Similar Threads

  1. v154 Help with Admin configure.php
    By tjetzer in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 3 Sep 2015, 02:58 AM
  2. Please help with admin/configure.php
    By aquidens in forum General Questions
    Replies: 3
    Last Post: 13 Oct 2008, 03:49 PM
  3. configure.php file help need
    By o.martin in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 25 Jan 2007, 05:53 AM
  4. upgraded to 1.3.6, need help with configure.php
    By ttalk in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 13 Jan 2007, 05:23 PM
  5. Help need configure.php
    By maori1 in forum General Questions
    Replies: 3
    Last Post: 24 May 2006, 08:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR