Hi,
Maybe this will help in understanding the configuration (I think you are looking to create).
It seems to me based on what I have read, you want to have two complete Zen Cart installations on the same server (not using any sort of multisite add on Mod).
If my assumption is correct you want to have:
www.domain1.com
www.domain2.com
Two domains on the same host as separate stores.
There are some things with this configuration you should be aware of:
1. The primary domain will be the only domain with an SSL and a dedicated IP address.
2. The secondary domains will use the primary domains SSL and IP, but only if properly configured.
3. The secondary domains will show the path through the primary domain when making sales or using "https://" (i.e.,
https://www.domain1.com/SecondDomain/index.php)
4. There will be some extra configuration effort for some of the "Plugins" available in Zen Cart to make them work correctly.
5. There is extra effort for store owner to manage sales, customers, etc.
6. Upgrades and maintenance tend to be tedious.
7. You can get "multi Domain" SSL from some hosting providers, but you will still only have one dedicated IP.
8. The 'multisite" plugin might help overcome some of these issues, but that plugin takes some effort to install and properly configure (I am trying that myself now).
9. After install, the zc_install folder must be removed and the "admin" folder must be renamed.
10. The files "configure.php" must be set to "read only".
To accomplish this configuration the first domain (
www.domain1.com) must be set as the primary domain on the hosting account.
The second domain will be an "Add On" domain (
www.domain2.com).
Domain2 (the "Add On" domain) will point to a folder (
SecondDomain)(
use whatever name you want for the folder) under you public_html (or whatever name the hosting company used on your site for the root).
Install the first Zen Cart to the root of your site, and the second copy to the sub-folder you create (i.e.,
SecondDomain).
Simulated "root" folder structure:
Code:
admin
cache
docs
download
editors
email
extras
favicon.ico
images
includes
index.php
install.txt
ipn_main_handler.php
license.txt
logs
mcs_learn_more.html
media
nddbc.html
page_not_found.php
pub
SecondDomain
README.md
robots_example.txt
vbv_learn_more.html
In this scenario both "stores" will have a full set of Zen Cart files, each with there own database.
Thus you will have two separate "admins" to manage the stores and there respective looks via templates, tracking sales, etc..
As for the configuration of the "includes/configuration.php" files the primary store/domain should be set-up by default when you first install.
Normally the following configure.php files will be set-up correctly when you install Zen Cart, this is provided as a reference only.
Assuming installation of Zen Cart 1.5.3
Primary Domain (includes/configure.php):
Code:
define('HTTP_SERVER', 'http://www.domain1.com');
define('HTTPS_SERVER', 'https://www.domain1.com');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '/home/hostassingedname/public_html/');
define('DIR_FS_SQL_CACHE', '/home/hostassingedname/public_html/cache');
Primary Domain (/admin/includes/configure.php):
Code:
define('HTTP_SERVER', 'https://www.domain1.com');
define('HTTPS_SERVER', 'https://www.domain1.com');
define('HTTP_CATALOG_SERVER', 'https://www.domain1.com');
define('HTTPS_CATALOG_SERVER', 'https://www.domain1.com');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '/home/hostassingedname/public_html/');
define('DIR_FS_SQL_CACHE', '/home/hostassingedname/public_html/cache');
Second Domain (/
SecondDomain/includes/configure.php):
Code:
define('HTTP_SERVER', 'http://www.domain1.com');
define('HTTPS_SERVER', 'https://www.domain1.com');
define('DIR_WS_CATALOG', '/SecondDomain/');
define('DIR_WS_HTTPS_CATALOG', '/SecondDomain/');
define('DIR_FS_CATALOG', '/home/hostassingedname/public_html/SecondDomain/');
define('DIR_FS_SQL_CACHE', '/home/hostassingedname/public_html/SecondDomain/cache');
Second Domain (/
SecondDomain/admin/includes/configure.php):
Code:
define('HTTP_SERVER', 'https://www.domain1.com');
define('HTTPS_SERVER', 'https://www.domain1.com');
define('HTTP_CATALOG_SERVER', 'https://www.domain1.com');
define('HTTPS_CATALOG_SERVER', 'https://www.domain1.com');
define('DIR_WS_CATALOG', '/SecondDomain/');
define('DIR_WS_HTTPS_CATALOG', '/SecondDomain/');
define('DIR_FS_CATALOG', '/home/hostassingedname/public_html/SecondDomain/');
define('DIR_FS_SQL_CACHE', '/home/hostassingedname/public_html/SecondDomain/cache');
Notice that the "http://" settings are the same between the primary and secondary domains.
Paths to sub folders are different.
In the "c-panel" using the domain controller:
1. The primary domain name should point to the root of you site (which should be the normal or default set-up that the host had installed).
2. The second domain should be pointed at the folder that the second copy of Zen Cart is installed "
SecondDomain"
Example site using this concept:
http://1potteryhouse.com/
http://tikidecorstore.com/
http://www.caribbeanrays.com/
Good Luck.
Bookmarks