Thread: SSL not working

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Oct 2006
    Posts
    27
    Plugin Contributions
    0

    Default SSL not working

    Hey all,

    I am sure this is a quick and easy one -

    Installed one ZC site -- had it up and running with shipping and payment and SSL. That store and one other demo store are still in my Public_HTML folder.

    Recently, I installed a clean install of ZC 1.3.6 cuz the old site was not live and we were still tweaking. For the new site of course i enabled SSL and edited the configure.php files as instructed. BUT i get the following error when going to checkout:

    Not Found
    The requested URL /~vcr71https://www.universalcutlery.com/catalog/index.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    My only guess is that i need to call the host (we are using a shared SSL) and have them reset or something.

    I am sure this is a small issue. If i need to provide code or any information, I can be very quick in getting it and dont mind doing so.

    Please, what are your opinions on this.

    Thanks in advance! - Bill

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: SSL not working

    Check your includes/configure.php and admin/includes/configure.php you have the wrong path in the HTTPS fields.

    https://www.zen-cart.com/tutorials/index.php?article=14 This FAQ should help.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Oct 2006
    Posts
    27
    Plugin Contributions
    0

    Default Re: SSL not working

    thanks for the reply!

    you sure? >>>>>


    /includes/configure.php

    // 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.universalcutlery.com');
    define('HTTPS_SERVER', 'https://cs7.simplehost.com/~vcr71');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');
    admin/includes/configure.php

    define('HTTP_SERVER', 'http://www.universalcutlery.com');
    define('HTTPS_SERVER', 'https://cs7.simplehost.com/~vcr71');
    define('HTTP_CATALOG_SERVER', 'http://www.universalcutlery.com');
    define('HTTPS_CATALOG_SERVER', 'https://cs7.simplehost.com/~vcr71');

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

  4. #4
    Join Date
    Oct 2006
    Posts
    27
    Plugin Contributions
    0

    Default Re: SSL not working

    anyone else help on this.....please please?


    the rest of the site seems to be working without any issue. Just the ssl is not functioning properly.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SSL not working

    Post your whole file from the server without your username and password for:
    /includes/configure.php

    You have something not setup right ... and this is where I would start looking ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Oct 2006
    Posts
    27
    Plugin Contributions
    0

    Default Re: SSL not working

    <?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.universalcutlery.com');
    define('HTTPS_SERVER', 'https://cs7.simplehost.com/~vcr71');

    // 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', '/catalog/');
    define('DIR_WS_HTTPS_CATALOG', 'https://www.universalcutlery.com/catalog/');

    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', '/usr/home/vcr71/public_html/catalog/');

    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', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'vcr71_vcr71');
    define('DB_SERVER_PASSWORD', 'XXXXXXXXXXX');
    define('DB_DATABASE', 'vcr71_catalog');
    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', '/usr/home/vcr71/public_html/catalog/cache');

    ?>

    Thank you! thank you!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SSL not working

    As Kim indicated, you have an error in the configure.php that builds the URL for the SSL and this is causing the issues you are having:
    PHP Code:
    define('DIR_WS_CATALOG''/catalog/');
    define('DIR_WS_HTTPS_CATALOG''https://www.universalcutlery.com/catalog/'); 
    Needs to read:
    PHP Code:
    define('DIR_WS_CATALOG''/catalog/');
    define('DIR_WS_HTTPS_CATALOG''/catalog/'); 
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Oct 2006
    Posts
    27
    Plugin Contributions
    0

    Default Re: SSL not working

    Thank you Kim and Ajeh! -

    I knew it was something small and simple ...... what i cannot figure is why that occured.

    On this installation during setup i gave it all the SSL info. Last time i did an install i did the SSL post installation.......

    Odd.....

    THANK YOU!! for helping catch my oversight!

    ~Bill

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SSL not working

    You are most welcome ... thanks for letting us know that fixing your configure.php file corrected this issue on your secure pages that were producing incorrect URLs ...

    NOTE: be sure to check your
    /admin/includes/configure.php

    and double check all your settings in there, too ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Oct 2006
    Posts
    27
    Plugin Contributions
    0

    Default Re: SSL not working

    yes -- as you pointed out i had the full address instead of just the /catalog/ directory. Correcting that instantly fixed the issue.

    just for completeness......

    I have looked at the admin/includes/configure.php (below) it seems to be in order ( but could you look anyways for me )

    Now i am freaked out with all of the possibilities of what else i may be missing here in the configure.php and all the many other files......

    <?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.universalcutlery.com');
    define('HTTPS_SERVER', 'https://cs7.simplehost.com/~vcr71');
    define('HTTP_CATALOG_SERVER', 'http://www.universalcutlery.com');
    define('HTTPS_CATALOG_SERVER', 'https://cs7.simplehost.com/~vcr71');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    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', '/catalog/admin/');
    define('DIR_WS_CATALOG', '/catalog/');
    define('DIR_WS_HTTPS_ADMIN', 'https://www.universalcutlery.com/catalog/admin/');
    define('DIR_WS_HTTPS_CATALOG', 'https://www.universalcutlery.com/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', '/usr/home/vcr71/public_html/catalog/admin/');
    define('DIR_FS_CATALOG', '/usr/home/vcr71/public_html/catalog/');

    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', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'vcr71_vcr71');
    define('DB_SERVER_PASSWORD', 'XXXXXXXXX');
    define('DB_DATABASE', 'vcr71_catalog');
    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', '/usr/home/vcr71/public_html/catalog/cache');

    ?>

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. SSL not working
    By fscproductions in forum General Questions
    Replies: 5
    Last Post: 22 Oct 2010, 04:20 AM
  2. SSL not working
    By jctdake2 in forum Basic Configuration
    Replies: 9
    Last Post: 26 Feb 2009, 06:32 PM
  3. SSL Not working
    By acreativepage in forum General Questions
    Replies: 4
    Last Post: 16 Oct 2008, 09:30 PM
  4. SSL Not working
    By mate2007 in forum General Questions
    Replies: 3
    Last Post: 18 May 2008, 01:52 PM
  5. SSL not working
    By janda3178 in forum General Questions
    Replies: 2
    Last Post: 14 Mar 2007, 02:41 AM

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