Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Unable to login to admin (www issue)

    I can login to admin fine if HTTP_SERVER etc on admin/includes/configure.php is set to http://domain.com

    But if I change it to http://www.domain.com, the admin login doesn't work. I enter the correct user and pass but it simply returns me to the login page. Any idea how to fix this? Thanks.

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

    Default Re: Unable to login to admin (www issue)

    Please post your admin/includes/configure.php without your password.
    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
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Unable to login to admin (www issue)

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

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    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', '/cart/admin/');
    define('DIR_WS_CATALOG', '/cart/');
    define('DIR_WS_HTTPS_ADMIN', '/cart/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/cart/');

    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', '/home/user/public_html/cart/admin/');
    define('DIR_FS_CATALOG', '/home/user/public_html/cart/');

    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', 'localhost');
    define('DB_SERVER_USERNAME', 'xxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxx');
    define('DB_DATABASE', 'user_zc1');
    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', '/home/user/public_html/cart/cache');
    The above works fine.
    (Removed some personal data)

    But if I change (the first 4 lines):
    define('HTTP_SERVER', 'http://domain.com');
    to:
    define('HTTP_SERVER', 'http://www.domain.com');
    It creates the problem I described.

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

    Default Re: Unable to login to admin (www issue)

    IS your secure certificate for www.your_domain.com or for your_domain.com ...
    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!

  5. #5
    Join Date
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Unable to login to admin (www issue)

    There is a certificate for both.

  6. #6
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Unable to login to admin (www issue)

    Then it is not installed properly - talk to your host.
    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.

  7. #7
    Join Date
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Unable to login to admin (www issue)

    The certificate? I can manage that via Cpanel. What do I need to correct?

 

 

Similar Threads

  1. v150 unable to login to admin
    By Boria in forum General Questions
    Replies: 7
    Last Post: 4 Mar 2012, 02:55 AM
  2. v150 Admin URL - Can't Login With Forced WWW vs Non-WWW via .htacces
    By zywex in forum Basic Configuration
    Replies: 4
    Last Post: 29 Feb 2012, 09:07 PM
  3. v150 Another "Unable to Login to Admin" Issue
    By Kairho in forum General Questions
    Replies: 4
    Last Post: 24 Feb 2012, 02:43 AM
  4. Unable to login to Admin
    By nickelleon in forum Customization from the Admin
    Replies: 6
    Last Post: 16 Oct 2009, 08:28 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