Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Moving a store within the same host

    Hi,

    While I was waiting for a client to transfer his domain name to the hosting company that I use, I set up his zencart store in a subdomain of my own site (only about 2 weeks ago). Everything is correctly set up and working fine.

    Now we've transferred his domain name, and I've copied all files from the subdomain down to my local machine and then up to his webspace.

    I've updated everything in both configuration files (includes/configure.php and admin/includes/configure.php) to point to the new paths. I've checked and double-checked - all paths are correct.

    Access to the db hasn't changed in any way - same db name, same password, etc.

    Yet when I browse to the new site I get the zc-install message. I know I could go through the process of doing a new install, etc. as per tutorial 100, but I'm really curious as to why the current set-up isn't working. (I'd rather spend twice as long figuring this out this out than do a new install )

    Can anyone think of anything I might have missed?


    Many thanks,

    WP.

  2. #2
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Re: Moving a store within the same host

    Just to confirm the lines I've changed in each of the configuration files:

    From admin/includes/configure.php

    define('HTTP_SERVER', 'http://www.newsite.com');
    define('HTTPS_SERVER', 'https://www.newsite.com');
    define('HTTP_CATALOG_SERVER', 'http://www.newsite.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.newsite.com');

    define('DIR_FS_SQL_CACHE', '/new path/cache');


    From includes/configure.php

    define('HTTP_SERVER', 'http://www.newsite.com');
    define('HTTPS_SERVER', 'https://www.newsite.com');

    define('DIR_FS_CATALOG', '/new path/');
    define('DIR_FS_LOGS', '/new path/logs');

    define('DIR_FS_SQL_CACHE', '/new path/cache');

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: Moving a store within the same host

    Database credentials? A database you created under your account most likely isn't accessible under your client's.

  4. #4
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Re: Moving a store within the same host

    Thanks lat9,

    Both sites are in my account - I own the subscription and have multiple sites set up under that subscription. I'm thinking that would make the db accessible from both sites, but I'm open to correction on that.

    Forgot to say, I also went into the db and corrected the entries in the Configuration table for STORE_PAGE_PARSE_TIME_LOG and SESSION_WRITE_DIRECTORY as they had the old values.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: Moving a store within the same host

    The zc_install "message" contains some broad hints to identify why the message was displayed (paths in configure.php or database credentials). What hints does the message you're receiving contain?

  6. #6
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Re: Moving a store within the same host

    The zc_install message is as follows - it seems to be quite generic, rather than giving any specific reasons why this particular installation is giving problems.

    I've checked everything in the config files, and the db connection info hasn't changed in any way.

    I've also one through everything here: http://www.zen-cart.com/content.php?160 but it all seems to check out correctly.

    Name:  zc_install.jpg
Views: 96
Size:  67.9 KB
    Last edited by WhitePhantom; 31 Mar 2015 at 02:04 PM.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: Moving a store within the same host

    See the bit under item #3: DIR_FS_CATALOG not valid or not set.

  8. #8
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Re: Moving a store within the same host

    That is set though, and is the same configuration as the original one, but with the path updated.

    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/correct/path/to/store/root/folder/');

    It's really frustrating. Everything seems to check out, and yet there's some little thing somewhere that's stopping it all from coming together.

    Maybe I'll save all my existing files and go through the process of doing a fresh install, then I can see what's different. I really want to know!

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: Moving a store within the same host

    That message (DIR_FS_CATALOG not valid or not set) is displayed if either there is no DIR_FS_CATALOG defined (which it is) or if there is no 'includes/classes' directory found "under" the DIR_FS_CATALOG.

    Can you access the admin?

  10. #10
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Re: Moving a store within the same host

    Thanks Lat9,

    I can access the admin alright. There is an includes/classes/ folder in the store root, which contains 5 folders and 28 files.

    Thing is, I FTP'd the entire file/folder structure down from where it existed and worked perfectly, then FTP'd it back up in its entirety to the new location. The only changes I needed to change (in theory) were the paths in the config files, and the couple of entries in the database that referred to paths.

    Sigh!!!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v138a Upgrading server within same host
    By heygretchen in forum Upgrading to 1.5.x
    Replies: 8
    Last Post: 23 Feb 2012, 04:17 AM
  2. More store in the same host with CEON URI Mapping?
    By shades12345 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 13 Sep 2011, 09:00 PM
  3. Changing domain to another name within same host
    By jackryan in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 3 Dec 2009, 04:52 PM
  4. Moving site contents to different host, but keeping the same database?
    By yelow in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Feb 2009, 05:10 PM
  5. Moving files within same server
    By ellisn in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 10 Aug 2008, 11:27 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