Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Duplicating a cart on the same server

    I am attempting to duplicate a zencart. I want to have the same kind of cart for various cities. This is zen 1.3.8a, php 4.4.8 and MySQL 4.1.22-standard

    Here are the steps I have taken so far.

    ===============
    tar and gzip the public_html directory
    Use phpMyadmin to export the zc1 database

    Log in to SSH as root

    Copy the public_html.tar.gz file to the new folder like
    cd ~olduser
    cp public_html.tar.gz /home/newuser

    Navigate to new dir like
    cd ~newuser

    Rename the existing public_html file.
    mv public_html orig_public_html

    Unpack the tar file
    tar -xzvf public_html.tar.gz

    Give ownership to the new user (Recursive chown)
    chown -R newuser:newuser public_html

    Give write permission for the configure files (I had them set to 444)
    chmod 744 public_html/includes/configure.php
    chmod 744 public_html/admin/includes/configure.php


    Log in to cpanel on new domain
    Navigate to mysql databases
    Create a database called "zc1"
    Navigate to phpMyadmin
    Click on the database
    Click Import
    Browse to X:\Sites\MYPATH\backups\olduser_zc1.sql
    Click GO

    Edit the configure files, change the domain name in a few places and replace olduser in a few places.
    Put in the new password for the database.

    Upload the configure files to the correct folders.
    ==========

    Then I get this error on the cart page:
    Sorry!
    There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem. Thank you.

    and this error on /admin:
    0 DB_ERROR_NOT_CONNECTED
    in:
    [db_cache table]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    Have I left something out, or is my logic completly off here, and this just won't work?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Duplicating a cart on the same server

    Quote Originally Posted by TecBrat View Post
    Then I get this error on the cart page:
    Sorry!
    There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem. Thank you.

    and this error on /admin:
    0 DB_ERROR_NOT_CONNECTED
    in:
    [db_cache table]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    Those are classic symptoms of incorrect database details/credentials in the configure.php files.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Re: Duplicating a cart on the same server

    Quote Originally Posted by DrByte View Post
    Those are classic symptoms of incorrect database details/credentials in the configure.php files.
    That's the way I understood the messages, but I checked my creds and they seemed correct. I'll check again, and maybe try them a little differently.

  4. #4
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Re: Duplicating a cart on the same server

    That was it, my initial install was done by fantastico and it used a different "DB_SERVER_USERNAME" than I thought it would.
    Thanks.

    In case someone else reads the thread above and wants to do the same thing, the next step is to chmod both configure files to something unwriteable. Since I am using suPHP, that's 444.

  5. #5
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    356
    Plugin Contributions
    0

    Default Re: Duplicating a cart on the same server

    In the tutorials there is one that details what you did:

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

    The same basic principles apply whether duplicating a site, moving a site or simply pulling a site down from the net to develop and test on a local system.
    Doug

  6. #6
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Re: Duplicating a cart on the same server

    Quote Originally Posted by pdxdoug View Post
    In the tutorials there is one that details what you did...
    The link you provided will certainly be helpful to someone, but the details of my post vary greatly from the details in that post.

  7. #7
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    356
    Plugin Contributions
    0

    Default Re: Duplicating a cart on the same server

    Sorry if I misunderstood what you were doing, but I think the end result would be the same.
    Doug

 

 

Similar Threads

  1. v151 Trying to move cart folder on same server
    By Brett in forum General Questions
    Replies: 6
    Last Post: 16 Aug 2014, 05:36 PM
  2. Duplicating attributes to SAME product?
    By glamourdolleyes in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Mar 2014, 05:53 PM
  3. Installing phpadmin on same server as ZE cart.
    By joey779 in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2011, 07:30 PM
  4. moving cart to a new domain (same server)
    By iddy in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 25 May 2010, 12:04 AM
  5. How can I change the domain name of my website using the same server?
    By Marlake in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 22 Jul 2008, 06:46 PM

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