Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    1,935
    Plugin Contributions
    20

    Default Re: HTTPS not working

    How was your admin configure.php file created? It looks like you took a copy of the admin/includes/dist-configure.php and performed some partial editing. The values I've highlighted in red should have been replaced with the "real" values when you installed your cart on your host:

    Code:
    <?php
    /**
    * SAMPLE dist-configure.php
    *
    * @package Configuration Settings
    * @package Admin
    * @copyright Copyright 2003-2011 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 19644 2011-09-29 16:04:04Z wilt $
    * @private
    */
    /**
    * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
    * To do that, make sure you use a "https:" URL for all 4 of the following, including the HTTP_ entries:
    */
    define('HTTP_SERVER', 'http://www.fancyinfrills.com');
    define('HTTPS_SERVER', 'https://www.fancyinfrills.com');
    define('HTTP_CATALOG_SERVER', 'http://www.fancyinfrills.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.fancyinfrills');
    
    // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
    define('ENABLE_SSL_ADMIN', 'true');
    
    // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
    define('ENABLE_SSL_CATALOG', '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)
    $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
    
    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_CATALOG', '/%%DIR%%/');
    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_HTTPS_CATALOG', '/%%DIR%%/');
    
    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_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)
    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
    define('DIR_FS_CATALOG', '%%FULLDIR%%/');
    
    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', '%%DB_SERVER%%');
    define('DB_SERVER_USERNAME', '%%DB_SERVER_USERNAME%%');
    define('DB_SERVER_PASSWORD', '%%DB_SERVER_PASSWORD%%');
    define('DB_DATABASE', '%%DB_DATABASE%%');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    
    // 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', '%%FULLDIR%%/cache');
    
    
    //Explanations of 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
    The reason you can't access your admin is that none of the file-system or database settings are valid.

  2. #12
    Join Date
    Jul 2012
    Posts
    34
    Plugin Contributions
    0

    Default Re: HTTPS not working

    For what it's worth, whenever I posted the admin version of the configure.php file, I didn't have to change anything. They were already set to:

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', '%%DB_SERVER%%');
    define('DB_SERVER_USERNAME', '%%DB_SERVER_USERNAME%%');
    define('DB_SERVER_PASSWORD', '%%DB_SERVER_PASSWORD%%');
    define('DB_DATABASE', '%%DB_DATABASE%%');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');

    I changed the SERVER, USERNAME, PASSWORD, and DATABASE information to match that of the other configure.php file. I also changed the USE_PCCONNECT to 'true'. Do I need to change anything else or should I even change what I did?

  3. #13
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    1,935
    Plugin Contributions
    20

    Default Re: HTTPS not working

    Yes, change all occurrences of:

    /%%DIR%%/ to /
    %%FULLDIR%% to D:\Hosting\9600306\html\

  4. #14
    Join Date
    Jul 2012
    Posts
    34
    Plugin Contributions
    0

    Default Re: HTTPS not working

    lat9,

    I was typing that last response at the same time you were. Up until now, the only changes I made to the configure file were changing the 'falses' to 'trues' to make the https content work. Can I replace those values you highlighted in red or do I need to completely start from scratch and reinstall everything?

  5. #15
    Join Date
    Jul 2012
    Posts
    34
    Plugin Contributions
    0

    Default Re: HTTPS not working

    I will give it a try. Thank you.

  6. #16
    Join Date
    Jul 2012
    Posts
    34
    Plugin Contributions
    0

    Default Re: HTTPS not working

    After making those changes, I no longer get the Zen Cart page. I now just get a plain white screen when trying to access my Admin page.

  7. #17
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    1,935
    Plugin Contributions
    20

    Default Re: HTTPS not working

    Please post your updated admin/includes/configure.php (without the actual database settings).

  8. #18
    Join Date
    Jul 2012
    Posts
    34
    Plugin Contributions
    0

    Default Re: HTTPS not working

    Here is my current Admin configure.php file:

    <?php
    /**
    * SAMPLE dist-configure.php
    *
    * @package Configuration Settings
    * @package Admin
    * @copyright Copyright 2003-2011 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 19644 2011-09-29 16:04:04Z wilt $
    * @private
    */
    /**
    * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
    * To do that, make sure you use a "https:" URL for all 4 of the following, including the HTTP_ entries:
    */
    define('HTTP_SERVER', 'http://www.fancyinfrills.com');
    define('HTTPS_SERVER', 'https://www.fancyinfrills.com');
    define('HTTP_CATALOG_SERVER', 'http://www.fancyinfrills.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.fancyinfrills.com');

    // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
    define('ENABLE_SSL_ADMIN', 'true');

    // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
    define('ENABLE_SSL_CATALOG', '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)
    $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];

    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    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_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)
    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
    define('DIR_FS_CATALOG', 'D:\Hosting\9600306\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', 'XXXXXX');
    define('DB_SERVER_USERNAME', 'XXXXX');
    define('DB_SERVER_PASSWORD', XXXXXXXX');
    define('DB_DATABASE', 'XXXXXXX');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');

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


    //Explanations of 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
    */

  9. #19
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    1,935
    Plugin Contributions
    20

    Default Re: HTTPS not working

    Two changes (in red):
    Code:
    <?php
    /**
    * SAMPLE dist-configure.php
    *
    * @package Configuration Settings
    * @package Admin
    * @copyright Copyright 2003-2011 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 19644 2011-09-29 16:04:04Z wilt $
    * @private
    */
    /**
    * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
    * To do that, make sure you use a "https:" URL for all 4 of the following, including the HTTP_ entries:
    */
    define('HTTP_SERVER', 'http://www.fancyinfrills.com');
    define('HTTPS_SERVER', 'https://www.fancyinfrills.com');
    define('HTTP_CATALOG_SERVER', 'http://www.fancyinfrills.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.fancyinfrills.com');
    
    // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
    define('ENABLE_SSL_ADMIN', 'true');
    
    // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
    define('ENABLE_SSL_CATALOG', '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)
    $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
    
    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    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_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)
    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
    define('DIR_FS_CATALOG', 'D:\Hosting\9600306\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', 'XXXXXX');
    define('DB_SERVER_USERNAME', 'XXXXX');
    define('DB_SERVER_PASSWORD', XXXXXXXX');
    define('DB_DATABASE', 'XXXXXXX');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    
    // 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', 'D:\Hosting\9600306\html\/cache');
    
    
    //Explanations of 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
    */

  10. #20
    Join Date
    Jul 2012
    Posts
    34
    Plugin Contributions
    0

    Default Re: HTTPS not working

    I am in my admin panel now. A million 'Thank yous' to you lat9!

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. SSL Installed, Not Working from https
    By dddza in forum General Questions
    Replies: 7
    Last Post: 9 Nov 2010, 11:30 PM
  2. https not working paypal pro?
    By chrismaddox3d in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 1 Oct 2010, 11:50 PM
  3. Https not working on admin
    By mel150 in forum General Questions
    Replies: 10
    Last Post: 15 Feb 2009, 09:19 PM
  4. Site not working in https in I.E.
    By dsaini in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 7 Aug 2006, 05:35 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
  •