Thread: Shop copy

Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Shop copy

    Well we'd kinda need to see the one for the original as well as the copied site..


    Quote Originally Posted by adb34 View Post
    includes/configure.php
    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.5.3
     * @copyright Copyright 2003-2014 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 2014-10-13 03: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://ebooks.adb34.co.uk');
      define('HTTPS_SERVER', 'https://ebooks.adb34.co.uk');
    
      // 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', '/homepages/20/d503465712/htdocs/shops/ebooks/');
    
      //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
      define('DIR_FS_LOGS', '/homepages/20/d503465712/htdocs/shops/ebooks/logs');
    
      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', 'ebooks_');
      define('DB_CHARSET', 'utf8');
      define('DB_SERVER', '*******.db.1and1.com');
      define('DB_SERVER_USERNAME', '********');
      define('DB_SERVER_PASSWORD', '********');
      define('DB_DATABASE', '********');
    
      // 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', '/homepages/20/d503465712/htdocs/shops/ebooks/cache');
    
    // EOF
    admin/includes/configure.php

    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.5.3
     * @copyright Copyright 2003-2014 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 2014-10-13 03:25:44
     */
    
    
    /*************** 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.      ***********/
    
    /**
     * 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://ebooks.adb34.co.uk');
      define('HTTPS_SERVER', 'https://ebooks.adb34.co.uk');
      define('HTTP_CATALOG_SERVER', 'http://ebooks.adb34.co.uk');
      define('HTTPS_CATALOG_SERVER', 'https://ebooks.adb34.co.uk');
    
      // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_ADMIN', 'false');
    
      // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_CATALOG', 'false');
    
      define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
    // 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_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)
      define('DIR_FS_ADMIN', preg_replace('#/includes/$#', '/', realpath(dirname(__FILE__) . '/../') . '/'));
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      define('DIR_FS_CATALOG', '/homepages/20/d503465712/htdocs/shops/ebooks/');
    
      //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
      define('DIR_FS_LOGS', '/homepages/20/d503465712/htdocs/shops/ebooks/logs');
    
      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', 'ebooks_');
      define('DB_CHARSET', 'utf8');
      define('DB_SERVER', '******2.db.1and1.com');
      define('DB_SERVER_USERNAME', '*******');
      define('DB_SERVER_PASSWORD', '*******');
      define('DB_DATABASE', '*********');
    
      // 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', '/homepages/20/d503465712/htdocs/shops/ebooks/cache');
    
    
    // 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
       */
    // EOF
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #12
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Shop copy

    These are the originals.

    Full action list of what I actually did.

    1. Built the site I wanted.
    2. Built second site.
    3. Renamed second site's files folder
    4. Made another folder with the same name as the original name of the second site.
    5. Copied the first site in to the second site
    6. Copied both of the config files from the renamed second site and put them in to the new second site
    Does that make sense to you?
    Learning Fast.
    Eden Craft Supplies

  3. #13
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Shop copy

    A bit more info;-

    1st site - fonts.adb34.co.uk
    2nd site - ebooks.adb34.co.uk
    Learning Fast.
    Eden Craft Supplies

  4. #14
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Shop copy

    So the process above looks correct, but the question is if that was successfully performed/current state.

    With the additional information the next question relates to how the redirects are performed and what the .htaccess in each directory/parent directory is..

    Interested in the root of the store and above only... Not all the sub-directories of the store's root.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #15
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Shop copy

    Quote Originally Posted by mc12345678 View Post
    So the process above looks correct, but the question is if that was successfully performed/current state.

    With the additional information the next question relates to how the redirects are performed and what the .htaccess in each directory/parent directory is..

    Interested in the root of the store and above only... Not all the sub-directories of the store's root.
    .htaccess root for both only have the one line
    Code:
    AddHandler x-mapp-php5.5  .php
    Learning Fast.
    Eden Craft Supplies

  6. #16
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Shop copy

    Indications of this situation are the following (correct me where I'm wrong):

    1. The main page of a site is reachable; however, upon click of any link, the individual is redirected to the site that was the source of the files for the current site.
    2. The two sites have independent databases or if the same database have different DB_PREFIX values.
    3. There is no .htaccess file that is in either of the two site's root directory nor above them that has any rewrite rules in the file.
    4. The two sites are in separate folders not one being in a sub-folder of another.

    This is indicative of the includes/configure.php file which is typically set to 444 to prevent overwriting from being modified even though it was attempted to be modified/saved/overwritten with a previously generated file. Either that, or the files were heavily modified to hard code store 1's URI within template files etc, which seems highly unlikely.

    Suggest verifying the includes/configure.php file for both sites to be different where the path to the two sites are different. If the second site needs to be modified, be sure to change the file security permissions to at least 644 to allow edit, edit and save the file, and then reset the security setting to highest of 444. As part of this process after saving the file(s), be sure to open them again to validate that the changes were saved.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #17
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Shop copy

    Quote Originally Posted by mc12345678 View Post
    Indications of this situation are the following (correct me where I'm wrong):....
    I followed you instructions and right at the end it struck me, check the config files with my backups, to make sure that the information was correct.

    No it was not. I had copied the same config files back in. I have changed both of the config files to as they should be and, yes you have guessed it, it all works correctly.

    Sorry to mess you guys around.
    Learning Fast.
    Eden Craft Supplies

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Copy Shop Inventory from one store to another?
    By cloudstrife08 in forum General Questions
    Replies: 0
    Last Post: 24 Jan 2010, 03:39 AM
  2. Replies: 3
    Last Post: 9 Aug 2009, 09:04 PM
  3. Replies: 3
    Last Post: 19 Aug 2008, 02:42 AM
  4. Tax only applied to hard copy not to electronic copy of a book
    By cheloricardo in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Mar 2007, 03:41 PM
  5. Replies: 4
    Last Post: 22 Sep 2006, 06:17 PM

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