Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default SSL admin login - 404 page cannot be displayed

    Some of you probably remember me from my previous post, things worked out but I've hit another kink, this one sucks just as bad as the last one. My usual unrelenting self has been at this for hours. My brain is fried. Lets start with the issue....

    I want to enable SSL for admin login, I am using a shared certificate from LFC Hosting. I've read this guide, read various google entries and have read tons of forum posts trying to compare their situations to mine. I try to adjust the appropriate settings in both the configure.php files but they just aren't taking effect. I've tried tons of variations of the HTTPS entries and it's starting to feels like I'm trying to solve a rubiks cube in hell. Evidently I've contracted a case of what most of you would call "stupid". I have copied and pasted what I've done below.


    https://server20.lfchosting.com/nullclothing/~nullclothing/nullstore/admin/login.php?zenAdminID=b1ne9agenrbseleqj25dtru691



    admin/includes

    <?php
    //
    /**
    *
    * @package Configuration Settings
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // Main webserver: eg, http://localhost - should not be empty for productive servers
    // 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
    /*
    * URLs 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
    */
    define('HTTP_SERVER', 'http://www.null-clothing.com');
    define('HTTPS_SERVER', 'https://server20.lfchosting.com/nullclothing/~nullclothing');
    define('HTTP_CATALOG_SERVER', 'http://www.null-clothing.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.null-clothing.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    // 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', '/nullstore/admin/');
    define('DIR_WS_CATALOG', '/nullstore/');
    define('DIR_WS_HTTPS_ADMIN', '/nullstore/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/nullstore/');

    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', 'e:/web/public_html/nullclothing/null-clothing/nullstore/admin/');
    define('DIR_FS_CATALOG', 'e:/web/public_html/nullclothing/null-clothing/nullstore/');

    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', 'nullclothing');
    define('DB_SERVER', 'mysql2.loosefoot.com');
    define('DB_SERVER_USERNAME', 'xxxxxxxxxxxxxxxxxxxxxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxxxxxxxxxxxxxxx');
    define('DB_DATABASE', 'nullclothingstore');
    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', 'e:/web/public_html/nullclothing/null-clothing/nullstore/cache');

    ?>



    -------------------------------------



    /includes


    <?php
    /**
    *
    * @package Configuration Settings
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // 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
    define('HTTP_SERVER', 'http://www.null-clothing.com');
    define('HTTPS_SERVER', 'https://server20.lfchosting.com/nullclothing/~nullclothing');

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

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

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * 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', 'e:/web/public_html/nullclothing/null-clothing/nullstore/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'nullclothing');
    define('DB_SERVER', 'mysql2.loosefoot.com');
    define('DB_SERVER_USERNAME', 'xxxxxxxxxxxxxxxxxxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxxxxxxxxxxxx');
    define('DB_DATABASE', 'nullclothingstore');
    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', 'e:/web/public_html/nullclothing/null-clothing/nullstore/cache');

    ?>




  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: SSL admin login - 404 page cannot be displayed

    In the file for the admin you have this:
    Code:
    define('HTTP_SERVER', 'http://www.null-clothing.com');
    define('HTTPS_SERVER', 'https://server20.lfchosting.com/nullclothing/~nullclothing');
    define('HTTP_CATALOG_SERVER', 'http://www.null-clothing.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.null-clothing.com');
    The htpps: should match your other htpps: entries.....

    But you did not state specifically what your issue was but I suspect that it is not being secure at login

    Is this working correctly on the catalog side??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: SSL admin login - 404 page cannot be displayed

    Quote Originally Posted by kobra View Post
    In the file for the admin you have this:
    Code:
    define('HTTP_SERVER', 'http://www.null-clothing.com');
    define('HTTPS_SERVER', 'https://server20.lfchosting.com/nullclothing/~nullclothing');
    define('HTTP_CATALOG_SERVER', 'http://www.null-clothing.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.null-clothing.com');
    The htpps: should match your other htpps: entries.....

    But you did not state specifically what your issue was but I suspect that it is not being secure at login

    Is this working correctly on the catalog side??

    My goal is to have SSL enabled for admin login. I am aware that SSL is only at login, then I'll be dropped back to regular HTTP when I'm in....unless if the posts I read that in were old and that the feature for full admin SSL has been implemented, I'm not sure.

    As for the catalog, I'm going to be straight honest with you, I haven't become that knowledgeable about Zen Cart to know what that is yet. From the sounds of it, it sounds like the shopping perspective of the client. In any case, to answer your question, I'm not sure.

    I hope I don't sound like I haven't read zilch before I got into this. These script issues can be a huge pain.


    -edit-
    I'm going to assume you're talking about this. In which case, the store appears to be working, but very unfinished, as you can see. :)

  4. #4
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: SSL admin login - 404 page cannot be displayed

    Well I solved it. Basically just mistakes in the HTTPS fields, user error. The address I entered the other day during install was even more way off. I spotted the faults and am now able to log into the account under SSL....until I click on something that is, then I'm booted back to the login screen. In my search for an answer to that riddle, it seems that most host's shared certificates do not like SSL admin logins. I cleared my cache but no dice, in the mean time, admin SSL is disabled. I'll look into more drastic solutions for that tomorrow because it's about 1:00AM and I'm damn tired.

    The SSL catalog works nicely though as that was my primary concern. Finally I can get to designing the damn cart.


    For both admin/includes and /includes.

    Before -
    https://server20.lfchosting.com/null.../~nullclothing

    After -
    https://server20.lfchosting.com/null.../null-clothing


    Disabling admin SSL is easy. You simply set it from true to false, boolean stuff. I'm thinking about writing a guide for this thing...

    -edit-
    One minor question. How significant are the .htaccess files? I mostly read that it's ok to delete them all because they can cause code conflicts.
    Last edited by -Havoc-; 19 Apr 2007 at 09:12 AM.

 

 

Similar Threads

  1. v151 Cannot access admin area - login loops back to admin login page
    By Dianne in forum Installing on a Linux/Unix Server
    Replies: 18
    Last Post: 14 Dec 2014, 02:46 PM
  2. Replies: 6
    Last Post: 19 Aug 2012, 07:33 PM
  3. 404 error in SSL Admin login
    By Parapontificator in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 27 Feb 2008, 03:12 AM
  4. The page cannot be displayed on Admin
    By erans in forum Basic Configuration
    Replies: 1
    Last Post: 11 May 2006, 11:57 PM

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