Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2011
    Posts
    3
    Plugin Contributions
    0

    red flag My Cart will ONLY work in directory originally installed... other instances fail

    Hi,

    Well, first off I gotta say how overall impressed I am at the level of forum help available. I spent a few hours configuring my store yesterday doing some things I thought would be tricky and playing with layout, but each time I had an issue, I was able to find a thread that gave the solution.

    OK so onto my problem. My nice new Zen Cart instance (version 1.39h) was working great yesterday, but today I decided I wanted to move it from where I installed it (in a sub folder "/store") to the root of the site. I did a backup, and followed the thread instructions for moving a site. I started to get 500 Page errors and nothing was working. Just in case I'd caused issues with the permissions, I went and re-checked/re-applied the security settings on the files/folders.

    After still getting 500 errors and doing some reading of the threads, I went into IIS Manager (version 6 on a Windows 2003 Server box) and checked the site properties for issues. I noticed that the folder "/store" kept coming up in the 'Inheritance Override' warning dialog when doing a couple of changes (even though the directory had been deleted).

    I decided to try a clean install, and created a new MySQL instance and clean store install on one of my websites that currently has no content. The installer ran great, but after installing the store and admin console, failed to display... again showing a 500 Error.

    I did three further installs creating new sites in IIS each time; even changing the permissions on every file to 777 and giving all the permissions I could in IIS, but the site STILL gave the 500 error. For good measure, I re-installed my PHP (ver 5) and reset the .ini file (I read this can sometimes cause an issue with some of the parameters).

    After almost giving up, I thought I would try moving the original files back to the /store location and as soon as I did that, the site magically started working again!

    You can see the instance here:

    http://www.575parts.com/store/

    sorry it's a bit rough, but you can see it's working. Now look at one of my other instances installed:

    http://www.aepaint.com/stig/

    ...and notice I get nothing. I really would like to move my original instance to the root of the site, in addition to having the ability of installing more instances, but I'm not sure what else I can do.

    I tried looking at the log files, but the only ones I could find were the IIS logs, which didn't seem to have any further info on what the root of the errors are.

    Can anyone help?
    Last edited by mattcomps; 19 Mar 2011 at 08:59 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Zen Cart will ONLY work in the directory originally installed... other instances

    Post the store front configure.pphp file for the install that is working at /store

    Also post the same file for the install at /stig/
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Zen Cart will ONLY work in the directory originally installed... other instances

    Here's the Config file for "/store" (working)

    <?php
    /**
    * @package Configuration Settings circa 1.3.9
    * @copyright Copyright 2003-2010 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 2011-03-15 08:25:44
    */


    /*************** 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://www.575parts.com');
    define('HTTPS_SERVER', 'https://www.575parts.com');

    // 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', '/store/');
    define('DIR_WS_HTTPS_CATALOG', '/store/');

    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:/Inetpub/575parts.com/store/');

    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', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'root');
    define('DB_SERVER_PASSWORD', '*****');
    define('DB_DATABASE', '575parts');
    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:/Inetpub/575parts.com/store/cache');

    // EOF


    And here's the file for "/stig" (not working)


    <?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://www.aepaint.com');
    define('HTTPS_SERVER', 'http://www.aepaint.com');

    // 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', '/stig/');
    define('DIR_WS_HTTPS_CATALOG', '/stig//');

    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:/Inetpub/aepaint/stig/');

    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', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'root');
    define('DB_SERVER_PASSWORD', '*****');
    define('DB_DATABASE', 'storeaepaint');
    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:/Inetpub/aepaint/stig/cache');

    // EOF

    Thanks!

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Zen Cart will ONLY work in the directory originally installed... other instances

    First off yu should be installing the latest version 1.3.8h versus circa 1.3.8 for /stig

    This one looks to have a blank page issue

    https://www.zen-cart.com/tutorials/index.php?article=82
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Zen Cart will ONLY work in the directory originally installed... other instances

    Looks like I was using an older installer (1.3.8 versus 1.3.9h) which for some reason wasn't working. I just did a re-install in the root and everything works great!

    Thanks for the help!

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Zen Cart will ONLY work in the directory originally installed... other instances

    Great that you have got this sorted...

    Windoze issues are not well supported here - - or at least by me
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Product Attributes FAIL Zen Cart/contractors FAIL - URGENT Need help, new contractor
    By PDub in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 16 Apr 2015, 07:07 AM
  2. v150 move cart to new Directory, but only old admin work on new cart
    By dreamsenterprises in forum Basic Configuration
    Replies: 2
    Last Post: 16 Aug 2012, 04:04 AM
  3. HTML Area will not work on this IP-address-only site
    By mommydesigns in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Jul 2008, 02:42 PM
  4. Replies: 1
    Last Post: 28 Sep 2007, 03:43 AM
  5. Replies: 6
    Last Post: 12 May 2006, 05:23 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