Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2008
    Posts
    155
    Plugin Contributions
    0

    Default securing admin login

    I've been using zen-cart for a quite a while. Firefox pointed out that my admin login is not secure. I tried changing the admin config from define('ENABLE_SSL_ADMIN', 'false') to 'true'. I couldn't get access to my admin login screen if I did that.

    I realize this is something probably simple but as a 1 person operation most of the time, programing my website is a very small portion of my responsibilities. Thank you in advance for any help.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: securing admin login

    Assuming you've got an SSL certificate for your store, you'll simply update /YOUR_ADMIN/includes/configure.php to change your HTTP_SERVER definition from http://www.example.com to https://www.example.com.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,136
    Plugin Contributions
    11

    Default Re: securing admin login

    Below are the recommended settings for the /YOURADMIN/includes/configure.php in version 1.5.4. Replace YOURADMIN with your admin folder name to find the file.

    Replace YOURSITE.COM with the proper URL for your website. It's also important when doing this change that you take into effect what your SSL certificate is set for - www or non-www. It can create problems if you enter www.yoursite.com when the SSL is for the non-www version. Some SSL certs cover both.

    Code:
    /** * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
     * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
     */
      define('HTTP_SERVER', 'http://YOURSITE.COM');
      define('HTTPS_SERVER', 'https://YOURSITE.COM');
      define('HTTP_CATALOG_SERVER', 'http://YOURSITE.COM');
      define('HTTPS_CATALOG_SERVER', 'https://YOURSITE.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');

  4. #4
    Join Date
    Jan 2008
    Posts
    155
    Plugin Contributions
    0

    Default Re: securing admin login

    I tried that, it didn't work. Should I still have a dist-configure file in both the admin/include/ folder and the include/ folder? My admin/include/configure file has this at the top, does it look right or is it not the right version:

    * @package Configuration Settings circa 1.5.1
    * @copyright Copyright 2003-2012 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 zc_install on 2013-01-22 01:35:18

    Thanks

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: securing admin login

    uh... lets start at the basics.... do you have an SSL certificate installed for your site?

    perhaps you could provide the URL of your site (not the admin)...

    your comment:

    define('ENABLE_SSL_ADMIN', 'false') to 'true'. I couldn't get access to my admin login screen if I did that.

    suggests that there is a problem with your SSL certificate....

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Jan 2008
    Posts
    155
    Plugin Contributions
    0

    Default Re: securing admin login

    Yes, there is a SSL certificate installed on the website.

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: securing admin login

    again, without a url to your website, it makes it hard to troubleshoot.

    if you have an SSL for the site, and changing the constant listed above causes problems, i have a feeling that you have a configuration issue. i could be wrong. but without a url to your site, very little to do except make guesses.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: securing admin login

    Quote Originally Posted by pazdar View Post
    I tried that, it didn't work. Should I still have a dist-configure file in both the admin/include/ folder and the include/ folder? My admin/include/configure file has this at the top, does it look right or is it not the right version:

    * @package Configuration Settings circa 1.5.1
    * @copyright Copyright 2003-2012 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 zc_install on 2013-01-22 01:35:18

    Thanks
    Regarding this, the dist-configure.php files are "example" versions of what defined variables are expected and minor instruction related to format of the defined variable. The version information seen at the top is comment and does not directly relate to the operation nor the defined variables. It does indicate a little about the history of the site and the process of upgrade performed, but that information (header comment) specifically does not pertain to the issue observed.

    Don't know if you've PMed the information or not, but generally speaking, if your catalog side is functioning fine to support purchase and when using https:, but the admin side is not, carefully compare the values of HTTP_SERVER and HTTPS_SERVER (if present) in the includes/configure.php to the admin/includes/configure.php. If the catalog side (remember need to validate functionality) includes www. then so should the admin side. If it does not, then neither should the admin...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Jan 2008
    Posts
    155
    Plugin Contributions
    0

    Default Re: securing admin login

    Neither the admin login or the final purchasing area are showing up as secured.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: securing admin login

    Quote Originally Posted by pazdar View Post
    Neither the admin login or the final purchasing area are showing up as secured.
    Are they showing up at all? Does the address change to https and content not get displayed? Is your certificate for www.whateveryoursiteiscalled.com when you have omitted the www. In your configure.php files?

    Please, to get more direct assistance in the forum, more direct information should be provided.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v138a Securing Admin area
    By zilog357 in forum General Questions
    Replies: 6
    Last Post: 15 Mar 2013, 02:16 PM
  2. Securing the admin login?
    By stitchnkitty in forum General Questions
    Replies: 11
    Last Post: 1 Oct 2010, 11:38 PM
  3. Securing TinyFCK in Zencart admin
    By zihao85 in forum Customization from the Admin
    Replies: 0
    Last Post: 1 Jul 2007, 10:52 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR