Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Location
    Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Localhost/store won't run anymore

    Hello,

    During developing my site i used "localhost/store" to test the shop, after a while i transferred the shop to a host and it's running live now.

    For a while i have changed things on the live site (is it live or life), now i like to make more changes but i like to do that on the test shop, localhost/store.

    But, localhost/store doesn't work anymore, i have looked into the
    config files, and they seems to be OK (see both below).

    Maybe somebody can have a look if they are OK and/or help me to find out what's wrong.

    ?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-02-24 01:35:47
    */

    /*************** NOTE: store/includes/configure.php
    /*************** 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. ***********/
    /*************** URL : localhost/store ***********/

    // 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://localhost');
    define('HTTPS_SERVER', 'https://localhost');

    // 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:/xampp/htdocs/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', '********');
    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', 'none');
    define('DIR_FS_SQL_CACHE', 'C:/xampp/htdocs/store/cache');

    // EOF

    <?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-02-24 01:35:47
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
    /*************** URL : localhost/store/admin ***********/

    // Define the webserver and path parameters
    // Main webserver: eg-http://www.your_domain.com -
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
    /*
    * URLs for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    *
    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://localhost');
    define('HTTPS_SERVER', 'https://localhost');
    define('HTTP_CATALOG_SERVER', 'http://localhost');
    define('HTTPS_CATALOG_SERVER', 'https://localhost');

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

    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', 'C:/xampp/htdocs/store/airadmin819/');
    define('DIR_FS_CATALOG', 'C:/xampp/htdocs/store/');

    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', '');
    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', 'none');
    define('DIR_FS_SQL_CACHE', 'C:/xampp/htdocs/store/cache');

    // EOF

  2. #2
    Join Date
    Mar 2011
    Location
    Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Re: Localhost/store won't run anymore

    Quote Originally Posted by ceesdk View Post
    Hello,

    During developing my site i used "localhost/store" to test the shop, after a while i transferred the shop to a host and it's running live now.

    For a while i have changed things on the live site (is it live or life), now i like to make more changes but i like to do that on the test shop, localhost/store.

    But, localhost/store doesn't work anymore, i have looked into the
    config files, and they seems to be OK (see both below).

    Maybe somebody can have a look if they are OK and/or help me to find out what's wrong.
    F
    Oh!!, I forgot to tell that instead of launching localhost/store the live site comes up ???

  3. #3
    Join Date
    Nov 2007
    Location
    Upstate NY
    Posts
    232
    Plugin Contributions
    0

    Default Re: Localhost/store won't run anymore

    I have a couple suggestions:

    If you're using an SEO URLs mod or anything else that edits the htaccess, double-check the htaccess files. I always forget that one when I move

    /vhost/accountname/public_html/store/
    Is that the actual text? "accountname" won't work. You should put ****** wherever you edited for privacy.

    Re-create your move but follow the instructions in this post:

    Zen Cart Move to New Host
    https://www.zen-cart.com/tutorials/i...hp?article=100

    1. On your NEW host, create a new MySQL database. Note the username, password, database name, and host name (usually localhost).
    2. Go to your NEW host and upload (FTP) a fresh NEW install using the same version files that you built your other site on.... this will make sure that you get the proper settings in your configure.php files...
    While installing, allow it to install the demo products, so that you can test and be sure that it's working nicely.
    a. Install (IMPORTANT: when asked about the database-table-prefix during Database-Setup, use the same prefix that your old store uses. You'll find that in the DB_PREFIX setting of your old store's configure.php file.)
    b. Test it.
    c. Make backups of the NEW server's /includes/configure.php and /admin/includes/configure.php files by downloading them (FTP) to your PC.

    3. On your OLD host, Make a COMPLETE backup of your DATABASE and STORE.
    a. Use either the "Backup MySQL Database" contribution to do the backup of your database, or use phpMyAdmin to export your entire database ... include the "DROP" tables command, and under Data, choose "Complete Inserts" and "Extended Inserts".
    Save the SQL file to your PC for later. Click here for tips on using phpMyAdmin to export database.
    b. Download all your old site's files via FTP (or if you have the option, zip them up on the server and download the zip)

    4. Now upload your OLD files over the NEW files on the NEW server, WITH TWO EXCEPTIONS: Don't overwrite the /includes/configure.php and /NAME_OF_YOUR_RENAMED_ADMIN_FOLDER/includes/configure.php files on the NEW server.
    5. Go back to phpMyAdmin on your NEW server.
    a. Select your NEW database (that you installed the NEW Zen Cart into)
    b. DROP all the tables. (Check them all and scroll down and on "With Selected..." select DROP. Confirm Yes.
    c. Click on the SQL tab across the top (or "Import" on newer phpMyAdmin configurations) and click Browse.
    d. Select the SQL file you made in step 3a when you exported your old database, and click Go.

    6. Grab the "Fix_Cache_Key" utility to reset your Admin->Sessions->Session Directory key so that it uses the proper folder path for your new server:
    http://www.zen-cart.com/index.php?ma...products_id=82

    Simply upload the file to your NEW Zen Cart folder and open fix_cache_key.php in your browser. It will give you status messages. Delete fix_cache_key.php when you're finished.

    7. You're done. Open your store and admin areas to see it all ready to go!

    8. You should review all your email settings in Admin->Configuration->Email Options -- especially any SMTP server/account settings, and of course all your email addresses.

  4. #4
    Join Date
    Mar 2011
    Location
    Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Re: Localhost/store won't run anymore

    Quote Originally Posted by Tapper View Post
    I have a couple suggestions:

    If you're using an SEO URLs mod or anything else that edits the htaccess, double-check the htaccess files. I always forget that one when I move


    Is that the actual text? "accountname" won't work. You should put ****** wherever you edited for privacy.

    Re-create your move but follow the instructions in this post:

    Zen Cart Move to New Host
    https://www.zen-cart.com/tutorials/i...hp?article=100

    1. On your NEW host, create a new MySQL database. Note the username, password, database name, and host name (usually localhost).
    2. Go to your NEW host and upload (FTP) a fresh NEW install using the same version files that you built your other site on.... this will make sure that you get the proper settings in your configure.php files...
    While installing, allow it to install the demo products, so that you can test and be sure that it's working nicely.
    a. Install (IMPORTANT: when asked about the database-table-prefix during Database-Setup, use the same prefix that your old store uses. You'll find that in the DB_PREFIX setting of your old store's configure.php file.)
    b. Test it.
    c. Make backups of the NEW server's /includes/configure.php and /admin/includes/configure.php files by downloading them (FTP) to your PC.

    3. On your OLD host, Make a COMPLETE backup of your DATABASE and STORE.
    a. Use either the "Backup MySQL Database" contribution to do the backup of your database, or use phpMyAdmin to export your entire database ... include the "DROP" tables command, and under Data, choose "Complete Inserts" and "Extended Inserts".
    Save the SQL file to your PC for later. Click here for tips on using phpMyAdmin to export database.
    b. Download all your old site's files via FTP (or if you have the option, zip them up on the server and download the zip)

    4. Now upload your OLD files over the NEW files on the NEW server, WITH TWO EXCEPTIONS: Don't overwrite the /includes/configure.php and /NAME_OF_YOUR_RENAMED_ADMIN_FOLDER/includes/configure.php files on the NEW server.
    5. Go back to phpMyAdmin on your NEW server.
    a. Select your NEW database (that you installed the NEW Zen Cart into)
    b. DROP all the tables. (Check them all and scroll down and on "With Selected..." select DROP. Confirm Yes.
    c. Click on the SQL tab across the top (or "Import" on newer phpMyAdmin configurations) and click Browse.
    d. Select the SQL file you made in step 3a when you exported your old database, and click Go.

    6. Grab the "Fix_Cache_Key" utility to reset your Admin->Sessions->Session Directory key so that it uses the proper folder path for your new server:
    http://www.zen-cart.com/index.php?ma...products_id=82

    Simply upload the file to your NEW Zen Cart folder and open fix_cache_key.php in your browser. It will give you status messages. Delete fix_cache_key.php when you're finished.

    7. You're done. Open your store and admin areas to see it all ready to go!

    8. You should review all your email settings in Admin->Configuration->Email Options -- especially any SMTP server/account settings, and of course all your email addresses.
    Thanks for your reply, Here is what I have done :

    Deleted my database, create a new database with same db name etc.

    Imported database back-up from live shop.

    Run fix_cache_key.php.

    and my test-shop is up and running again on my PC.

    regards, Cees

 

 

Similar Threads

  1. Can't Get Installer to Run on Localhost
    By Kennym in forum Installing on a Windows Server
    Replies: 2
    Last Post: 14 Mar 2010, 03:01 PM
  2. zc_install won't run
    By toriapilar in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 19 Oct 2008, 05:22 PM
  3. 1.3.8 new install - can't get my localhost to run it
    By Edm in forum Installing on a Windows Server
    Replies: 2
    Last Post: 10 May 2008, 10:20 AM
  4. logo.jpg won't load up anymore
    By zc-newbie in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Sep 2006, 01:45 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