Results 1 to 4 of 4
  1. #1

    Default Trouble with admin login on initial install

    I did a fresh install of Zen Cart. I already have a dedicated SSL certificate, so I wanted to change the settings to allow SSL on checkout and on admin login.

    In the configure.php files, there were the following lines of codes:

    1. includes/configure.php

    define('HTTP_SERVER', 'http://MYDOMAIN.com');
    define('HTTPS_SERVER', 'https://MYDOMAIN.com');

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

    2. admin/includes/configure.php

    define('HTTP_SERVER', 'http://MYDOMAIN.com');
    define('HTTPS_SERVER', 'https://MYDOMAIN.com');
    define('HTTP_CATALOG_SERVER', 'http://MYDOMAIN.com');
    define('HTTPS_CATALOG_SERVER', 'https://MYDOMAIN.com');

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


    My SSl certificate is for www.MYDOMAIN.com, so I changed the codes as follows:

    1. includes/configure.php

    define('HTTP_SERVER', 'http://www.MYDOMAIN.com');
    define('HTTPS_SERVER', 'https://www.MYDOMAIN.com');

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

    2. admin/includes/configure.php

    define('HTTP_SERVER', 'http://www.MYDOMAIN.com');
    define('HTTPS_SERVER', 'https://www.MYDOMAIN.com');
    define('HTTP_CATALOG_SERVER', 'http://www.MYDOMAIN.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.MYDOMAIN.com');

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

    Everything in bold is what I changed or added.


    When I go to my admin login page, I'm correctly directed to my https URL. However, when I actually login, the page blinks and nothing happens. It essentially refreshes itself.

    I then changed everything back to the original settings, and everything works fine. So I have two questions:

    1. Why couldn't I login in with the changes I made?

    2. How do I make the cart go to www.MYDOMAIN.com when someone enters only MYDOMAIN.com? My SSL certificate requires the www prefix.

    Again, this is a completely fresh install. I haven't changed any other settings other than changing my password.

  2. #2

    Default Re: Trouble with admin login on initial install

    I forgot to add that I did the initial install to a subdirectory:

    http://www.MYDOMAIN.com/SOMEFOLDER/

    I did this because I'm constructing Zen Cart while I phase out my current shopping cart. I'd like to clear up the SSL issue before proceeding forward. Any thoughts?

  3. #3

    Default Re: Trouble with admin login on initial install

    I seemed to got it working by configuring the two configure.php files as follows:

    1. includes/configure.php

    define('HTTP_SERVER', 'http://www.MYDOMAIN.com');
    define('HTTPS_SERVER', 'https://www.MYDOMAIN.com');

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

    2. admin/includes/configure.php

    define('HTTP_SERVER', 'http://MYDOMAIN.com');
    define('HTTPS_SERVER', 'https://www.MYDOMAIN.com');
    define('HTTP_CATALOG_SERVER', 'http://MYDOMAIN.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.MYDOMAIN.com');

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


    Does anyone know if this will pose a problem later on?

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

    Default Re: Trouble with admin login on initial install

    Everything should match when setup correctly ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. v151 Can't login to admin area with fresh install of 1.5.1 on wheezy
    By petemc in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 6 Nov 2014, 06:13 PM
  2. Can't login to admin after upgrade; can login with new install
    By dietcokelemon in forum Upgrading to 1.5.x
    Replies: 14
    Last Post: 9 Feb 2014, 05:16 PM
  3. v151 Have not been able to login to admin panel from initial install!?!
    By cignet in forum Basic Configuration
    Replies: 6
    Last Post: 25 Dec 2012, 03:42 PM
  4. [Server Problem] Can't Login to Admin with Fresh Install
    By interactivewest in forum Bug Reports
    Replies: 3
    Last Post: 16 Sep 2009, 10:51 PM
  5. Can't Login to Admin with Fresh Install
    By interactivewest in forum Installing on a Linux/Unix Server
    Replies: 15
    Last Post: 11 Sep 2009, 09:24 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