Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Posts
    2
    Plugin Contributions
    0

    Default Admin login problems after installing SSL

    Site: stitch4u.com/store

    I installed SSL last night, and it seems to be working on the store side. No problems logging in as a customer, adding and removing from cart, etc.

    I can't log in to the admin, however. it just keeps redirecting back to the admin login page.

    I have searched around, and so I know to put the relevant code parts here:

    from (admin)/includes/configure.php:

    Code:
     define('HTTP_SERVER', 'https://stitch4u.com');
      define('HTTPS_SERVER', 'https://stitch4u.com');
      define('HTTP_CATALOG_SERVER', 'https://stitch4u.com');
      define('HTTPS_CATALOG_SERVER', 'https://stitch4u.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', '/store/admin*****/');
      define('DIR_WS_CATALOG', '/store/');
      define('DIR_WS_HTTPS_ADMIN', '/store/admin*****/');
      define('DIR_WS_HTTPS_CATALOG', '/store/');
    (Admin directory name obfuscated)

    and from /includes/configure.php:

    Code:
      define('HTTP_SERVER', 'https://stitch4u.com');
      define('HTTPS_SERVER', 'https://stitch4u.com');
    
      // 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', '/store/');
      define('DIR_WS_HTTPS_CATALOG', '/store/');
    I have tried different browsers, computers, etc, no joy. This looks right, from everything I've researched. What am I doing wrong?

    Lastly: this is a GoDaddy-hosted site, shared-server. Don't know if that's relevant or not.

    Thanks in advance for your help!

  2. #2
    Join Date
    Oct 2007
    Location
    Stevenage, GB
    Posts
    70
    Plugin Contributions
    0

    Default Re: Admin login problems after installing SSL

    have you tried to clear browser cache? add redirect option to HTTPS via .htaccess

    Any logs in log folder?
    - Freelance Software Developer

  3. #3
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Admin login problems after installing SSL

    Hi cwmajors,

    In my admin/includes/configure.php It recommends to enter the HTTPS address in the HTTP_SERVER settings like this:

    define('HTTP_SERVER', 'https://stitch4u.com');

    Note about HTTPS_SERVER:
    * There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.

    Also, here is a link to redirect your cPanel website to HTTPS with GoDaddy.

    Hope that helps!!

    Added: you'll need to change your admin password too

  4. #4
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Admin login problems after installing SSL

    Quote Originally Posted by Trinity14 View Post
    Hi cwmajors,

    In my admin/includes/configure.php It recommends to enter the HTTPS address in the HTTP_SERVER settings like this:

    define('HTTP_SERVER', 'https://stitch4u.com');

    Note about HTTPS_SERVER:
    * There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.

    Also, here is a link to redirect your cPanel website to HTTPS with GoDaddy.

    Hope that helps!!

    Added: you'll need to change your admin password too
    Hold up there. In Zen Cart 1.5.1 HTTPS_SERVER still exists/existed...

    Really if anything, in Zen Cart 1.5.1 the use of the auto-detect directory was incorporated so listing of the admin subdirectory would not longer be an issue/shown in the file.

    As far as the identification of the web-address one thing to know/identify is if it should be preceded by www. as that might be a factor.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Admin login problems after installing SSL

    Quote Originally Posted by mc12345678 View Post
    Hold up there. In Zen Cart 1.5.1 HTTPS_SERVER still exists/existed...

    Really if anything, in Zen Cart 1.5.1 the use of the auto-detect directory was incorporated so listing of the admin subdirectory would not longer be an issue/shown in the file.

    As far as the identification of the web-address one thing to know/identify is if it should be preceded by www. as that might be a factor.

    This is taken from 1.55f admin/includes/configure.php
    This is the code I was referring to:
    PHP Code:
    <?php
    /**
     * @package Configuration Settings
     * @copyright Copyright 2003-2016 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * File Built by Zen Cart Installer on Thu Mar 01 2018 20:02:17
     */


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

    /**
     * Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
     */
    define('HTTP_SERVER''https://yourstore.com');
    /**
     * Note about HTTPS_SERVER:
     * There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.
     */

    /**
     * Note about DIR_WS_ADMIN
     * The DIR_WS_ADMIN value is now auto-detected.
     * In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
     */

  6. #6
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Admin login problems after installing SSL

    Quote Originally Posted by Trinity14 View Post
    This is taken from 1.55f admin/includes/configure.php
    This is the code I was referring to:
    PHP Code:
    <?php
    /**
     * @package Configuration Settings
     * @copyright Copyright 2003-2016 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * File Built by Zen Cart Installer on Thu Mar 01 2018 20:02:17
     */


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

    /**
     * Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
     */
    define('HTTP_SERVER''https://yourstore.com');
    /**
     * Note about HTTPS_SERVER:
     * There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.
     */

    /**
     * Note about DIR_WS_ADMIN
     * The DIR_WS_ADMIN value is now auto-detected.
     * In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
     */
    Sure, understand that the discussion was from more recent software, but that can be like saying there's no longer an admin/includes/classes/orders.php file. Deleting it though from a ZC 1.5.1 system won't make things work as expected. Just advising that some suggestions don't apply to all versions and while yes this site should be updated, that would be something to follow addressing this "minor" issue.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Replies: 0
    Last Post: 26 Aug 2009, 11:18 AM
  2. Can't Login to Admin page after installing SSL certificate
    By marcus11 in forum General Questions
    Replies: 6
    Last Post: 30 Jun 2009, 08:57 PM
  3. Login problems after installing Magic URL
    By xcergy in forum General Questions
    Replies: 11
    Last Post: 3 Mar 2009, 12:11 AM
  4. Admin Problems After Installing SSL
    By sethererm in forum General Questions
    Replies: 5
    Last Post: 12 Mar 2008, 08:00 PM
  5. Problems after installing SSL
    By Ousel in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 1 Dec 2006, 03:47 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