Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008
    Posts
    2
    Plugin Contributions
    0

    Default Error 500 on home page / Redirected to Admin Login

    Fresh install of Zen Cart 1.3.8. New PHP, new MySQL. Insall works fine, Admin section works fine. Home page sometimes gives error 500 and sometimes redirects to admin/login.php if I'm already logged in as admin in another browser. Go to http://www.copperclassics.eu to see what I'm talking about...

    Anybody got any clues? Thanks :)

    Here's the configure.php:
    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.3.8
     * @copyright Copyright 2003-2007 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.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'http://copperclassics.eu');
      define('HTTPS_SERVER', 'https://copperclassics.eu');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', '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_CATALOG', '/');
      define('DIR_WS_HTTPS_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', 'C:\Websites\EuropaDesigns\wwwroot_eu/');
    
      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', 'zen_');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', '--------');
      define('DB_SERVER_PASSWORD', '--------');
      define('DB_DATABASE', --------');
      define('USE_PCONNECT', 'false');
      define('STORE_SESSIONS', 'db');
      // for STORE_SESSIONS, 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', 'file'); 
      define('DIR_FS_SQL_CACHE', 'C:\Websites\EuropaDesigns\wwwroot_eu\cache');
    
    // EOF

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

    Default Re: Error 500 on home page / Redirected to Admin Login

    Check if you have mixed up your Catalog and Admin configure.php files on the server ...

    I go to your main domain name and it takes me to the Admin ...
    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!

  3. #3
    Join Date
    Jun 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Error 500 on home page / Redirected to Admin Login

    The includes/configure/php and admin/includes/configure.php are in the right places.

    I tried commenting out all the code in index.php and uncommenting the code line by line, then doing the same thing in any pages the code called into.

    After getting a couple lines into the index and the template_top.php (or whatever the first file is) it became apparent that the execution of the code was completely arbitrary, and I was getting inconsistent results just by executing the same code a few times. Sometimes php would make it five lines in, sometimes two, sometimes one. It must be my server. The box I lease must have some residual configuration or other instability that kills the php process during execution.

    Whatever the issue, I won't be able to run zen cart consistently on my server even though the admin and install routines seem to work fine. I guess I'll set it up on another hosting provider and manage it separately.

    Thanks for the input. :) From what I've seen of zen cart on the test install on our development server it's pretty sweet.

    The install on the alternate hosting seems to be running correctly.

 

 

Similar Threads

  1. Admin Login will not display: 500 error
    By ThinkEnvisage in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 20 Mar 2013, 03:34 AM
  2. Redirected to Admin home when I press Save
    By webboy in forum Basic Configuration
    Replies: 3
    Last Post: 27 Jun 2011, 05:42 PM
  3. Admin login blank - server error 500 upgrading ...f to g
    By carlvt88 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 4 Oct 2010, 04:56 AM
  4. Keep getting redirected to admin login page
    By kal130 in forum Installing on a Windows Server
    Replies: 6
    Last Post: 26 Sep 2010, 08:09 PM
  5. Replies: 3
    Last Post: 23 Jul 2007, 06:58 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