Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default 2 zen carts on the same mydomain.com

    Hello!

    I have ZC currently running on my main site and have my test zen cart running with a different web host. Although both webhosts are Linux the are configured differently so what works on one does not work on the other.

    I was thinking of placing my test zen cart on the same server as my real site running zc so they are both with the same webhost.

    Is it ok to have a live site on mydomain.com and a test site on mydomain/dev ?

    my ssl is secure.mydomain.com

    I would use separate databases of course.

    I am new to ecommerce carts and php/mysql

    Is this a good or bad idea?

    any suggestions? or no-nos?

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

    Default Re: 2 zen carts on the same mydomain.com

    Yes, This is how this is done by most....

    Main store normally at the root of your account and an evaluation/test account in another folder ??test - eval - or?? or in a sub-domain...

    Of course with its own DB

  3. #3
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: 2 zen carts on the same mydomain.com

    Great!

    I thought that might be the simplest way, but was afraid of file conflicts, as I don't know much about how php files communicate to each other.

    Thanks for the advice!

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: 2 zen carts on the same mydomain.com

    Purists will throw their hands up when I say this, but in very simplistic terms the php files communicate with each other and the database by way of the includes/configure.php and admin/includes/configure.php files.

    As long as these settings are defined to point to different places on your server and different databases, your two (or more) Zen Carts won't interfere with each other.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: 2 zen carts on the same mydomain.com

    Gave it a try....using this guide:

    https://www.zen-cart.com/tutorials/index.php?article=54

    mydomain.com/dev files kept referencing/going back to the mydomain.com web pages.

    I checked the configure files/paths...all seemed correct.

    I deleted all the /dev files+db in fears it would start to corrupt my live site. I hope I haven't messed it up already.

    It all seems a bit too close to home anyway. I guess I will continue to do my testing at the other webhost, or just switch hosts.

  6. #6
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: 2 zen carts on the same mydomain.com

    Quote Originally Posted by dharma View Post
    Gave it a try....using this guide:

    https://www.zen-cart.com/tutorials/index.php?article=54

    mydomain.com/dev files kept referencing/going back to the mydomain.com web pages.

    I checked the configure files/paths...all seemed correct.

    I deleted all the /dev files+db in fears it would start to corrupt my live site. I hope I haven't messed it up already.

    It all seems a bit too close to home anyway. I guess I will continue to do my testing at the other webhost, or just switch hosts.
    I gave it another shot using a different method:

    https://www.zen-cart.com/tutorials/i...hp?article=100

    The new install worked perfectly, pages pointing to the right pages etc. after I over wrote the new install files with my live old server files/db and used the fix key cache tool, same problems of the test pages pointing to the live site

    what did I do wrong?

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: 2 zen carts on the same mydomain.com

    Quote Originally Posted by dharma View Post
    I gave it another shot using a different method:

    https://www.zen-cart.com/tutorials/i...hp?article=100

    The new install worked perfectly, pages pointing to the right pages etc. after I over wrote the new install files with my live old server files/db and used the fix key cache tool, same problems of the test pages pointing to the live site

    what did I do wrong?
    I suspect that you set it up correctly, but that you old files included your old configure.php files. So when you loaded them up, you overwrote your new configure.php files and pointed everything back to your old site.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: 2 zen carts on the same mydomain.com

    I tried it again, and the /dev index page loads correctly and all the links point to /dev/images etc..., once I click a link and move to another page I am still in /dev but all the links point to the live pages at mydomain.com

    Here are my configs: is there a obvious error?

    admin/includes:
    define('HTTP_SERVER', 'http://mydomain.com');
    define('HTTPS_SERVER', 'https://secure. mydomain.com/dev1');
    define('HTTP_CATALOG_SERVER', 'http://mydomain.com');
    define('HTTPS_CATALOG_SERVER', 'https://secure. mydomain.com/dev1');

    define('DIR_WS_ADMIN', '/dev1/admin/');
    define('DIR_WS_CATALOG', '/dev1/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_FS_ADMIN', '/xxx/xxx/user/www/dev1/admin/');
    define('DIR_FS_CATALOG', '/xxx/xxx/user/www/dev1/');

    includes/configure:
    define('HTTP_SERVER', 'http://mydomain.com');
    define('HTTPS_SERVER', 'https://secure. mydomain.com/dev1');

    define('DIR_WS_CATALOG', '/dev1/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_FS_CATALOG', '/xxx/xxx/user/www/dev1/');

    I have tried adding /dev1 to a few defines, and a page loads bit with no stylesheet

    I have Ultimate_SEO_URLs installed, could that be this issue?

  9. #9
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: 2 zen carts on the same mydomain.com

    I've indicated some corrections below for the admin/includes/ files
    define('HTTP_SERVER', 'http://mydomain.com');
    define('HTTPS_SERVER', 'https://secure. mydomain.com'); <-- should not have /dev1
    define('HTTP_CATALOG_SERVER', 'http://mydomain.com');
    define('HTTPS_CATALOG_SERVER', 'https://secure. mydomain.com'); <-- should not have /dev1

    define('DIR_WS_ADMIN', '/dev1/admin/');
    define('DIR_WS_CATALOG', '/dev1/');
    define('DIR_WS_HTTPS_ADMIN', '/dev1/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/dev1/');

    define('DIR_FS_ADMIN', '/xxx/xxx/user/www/dev1/admin/');
    define('DIR_FS_CATALOG', '/xxx/xxx/user/www/dev1/');
    and for the includes/ file
    define('HTTP_SERVER', 'http://mydomain.com');
    define('HTTPS_SERVER', 'https://secure. mydomain.com'); <-- should not have /dev1

    define('DIR_WS_CATALOG', '/dev1/');
    define('DIR_WS_HTTPS_CATALOG', '/dev1/');

    define('DIR_FS_CATALOG', '/xxx/xxx/user/www/dev1/');
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  10. #10
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: 2 zen carts on the same mydomain.com

    Thank you for your corrections. Unfortunately the issue still exists . I compared your corrections with my live site configs, everything looks right, I am at a loss.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. mydomain.com and wholesale.mydomain.com
    By kidtwist in forum Basic Configuration
    Replies: 3
    Last Post: 19 Jul 2011, 12:15 AM
  2. Install two carts on the same domain & same mySQL.
    By Forum5 in forum Installing on a Windows Server
    Replies: 3
    Last Post: 7 Jul 2010, 05:45 AM
  3. mydomain.com/store? or simply mydomain.com?
    By zcnb in forum General Questions
    Replies: 3
    Last Post: 26 Jun 2008, 07:30 AM
  4. mydomain.com/store/ VS www.mydomain.com/store/
    By shocker in forum General Questions
    Replies: 3
    Last Post: 24 Mar 2008, 03:38 AM
  5. Advice needed: mydomain.com/store or store.mydomain.com?
    By rstevenson in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 6 Nov 2006, 08:27 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