Forums / General Questions / Shop copy

Shop copy

Views: 1,372

Results 1 to 17 of 17
19 Apr 2015, 11:45
#1
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Shop copy

I am looking at doing a full image backup of my site together with it's database so that I can setup another site that looks the same but selling completely different products.

What pages do I need to amend so that when I upload the database, with a different name etc, the site picks up the correct database?

Is there anything else I need to change/do?

I am trying to speed up the process of setting up another shop.

20 Apr 2015, 13:06
#2
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
1

Re: Shop copy

adb34:

I am looking at doing a full image backup of my site together with it's database so that I can setup another site that looks the same but selling completely different products.

What pages do I need to amend so that when I upload the database, with a different name etc, the site picks up the correct database?

Is there anything else I need to change/do?

I am trying to speed up the process of setting up another shop.

It can be as simple as changing the configure.php files to point at the correct location and database..

20 Apr 2015, 15:47
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
1

Re: Shop copy

adb34:

I am looking at doing a full image backup of my site together with it's database so that I can setup another site that looks the same but selling completely different products.

What pages do I need to amend so that when I upload the database, with a different name etc, the site picks up the correct database?

Is there anything else I need to change/do?

I am trying to speed up the process of setting up another shop.

DivaVocals:

It can be as simple as changing the configure.php files to point at the correct location and database..

Assuming that as the site has been further modified that things like hard links have not been created to the current site, but instead relative/zen_href_link functionality used, or specific files loaded based on path information entered specifically on the page(s), but instead again ZC functions and code used to find the applicable file(s).

20 Apr 2015, 17:05
#4
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Shop copy

mc12345678:

Assuming that as the site has been further modified that things like hard links have not been created to the current site, but instead relative/zen_href_link functionality used, or specific files loaded based on path information entered specifically on the page(s), but instead again ZC functions and code used to find the applicable file(s).

Thanks guys. just could not think of the right files.

20 Apr 2015, 17:38
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
1

Re: Shop copy

DivaVocals:

It can be as simple as changing the configure.php files to point at the correct location and database..

mc12345678:

Assuming that as the site has been further modified that things like hard links have not been created to the current site, but instead relative/zen_href_link functionality used, or specific files loaded based on path information entered specifically on the page(s), but instead again ZC functions and code used to find the applicable file(s). Right.. but my original answer was based on the things we KNOW about Zen Cart, not everything we don't know (hard coded links and any other "unusual" modification would be in that unknown area). We KNOW that all things being equal that a change to the configure.php files (store side and admin) to point to the new location and database would be all that's minimally needed.. (and BTW, there is an FAQ which covers moving one's Zen Cart site..)

31 Oct 2015, 16:18
#6
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Shop copy

DivaVocals:

It can be as simple as changing the configure.php files to point at the correct location and database..

I have copied the site that I want to use in to another domain. I have changed both of the config files to the new domain and database. When I access the new domain the home page is OK, but all other links go to the copied site.

01 Nov 2015, 17:01
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
1

Re: Shop copy

adb34:

I have copied the site that I want to use in to another domain. I have changed both of the config files to the new domain and database. When I access the new domain the home page is OK, but all other links go to the copied site.

You need to update your config file to point to the NEW FILE FOLDERS location too...

01 Nov 2015, 18:02
#8
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Shop copy

DivaVocals:

You need to update your config file to point to the NEW FILE FOLDERS location too...

They are. Very thing in both of the config files are pointing to the correct site.

01 Nov 2015, 18:12
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
1

Re: Shop copy

adb34:

They are. Very thing in both of the config files are pointing to the correct site.

How bout posting the includes/configure.php and admin/includes/configure.php files (obscuring DB_PASSWORD and admin directory if specifically provided (which it shouldn't be in an updated site)).

Please include within ``` [CODE][/CODE]

01 Nov 2015, 23:25
#10
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Shop copy

includes/configure.php```

<?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 ``` <?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 ```
04 Nov 2015, 09:15
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
1

Re: Shop copy

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

adb34:

includes/configure.php```

<?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 > > ``` <?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 ```
04 Nov 2015, 11:52
#12
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

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?
04 Nov 2015, 13:06
#13
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Shop copy

A bit more info;-

1st site - fonts.adb34.co.uk 2nd site - ebooks.adb34.co.uk

04 Nov 2015, 15:21
#14
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
1

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.

04 Nov 2015, 17:29
#15
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Shop copy

mc12345678:

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

AddHandler x-mapp-php5.5  .php
05 Nov 2015, 19:34
#16
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
1

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.

06 Nov 2015, 12:52
#17
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Shop copy

mc12345678:

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.