Results 1 to 7 of 7
  1. #1
    Join Date
    May 2012
    Posts
    105
    Plugin Contributions
    0

    red flag I try to copy to new host.but not work

    https://www.zen-cart.com/content.php...fferent-server

    I follow the insturction above. to move first site it was crashed, and making a new site in second
    when I install a new zencart , it work. but after I upload the mysql from old database. I cannot see my web, and also admin section

    I really want to make a new site and transfer the old data in to this site. because the shop I was running is crashed
    and I want all the customer info and orders

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

    Default Re: I try to copy to new host.but not work

    You have your old configure.php file and your new site configure.php file

    Please post what you have in each for the red highlighted entry
    Code:
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', '');
      define('DB_CHARSET', 'utf8');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'username');
      define('DB_SERVER_PASSWORD', 'password');
      define('DB_DATABASE', 'DB Name');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2012
    Posts
    11,630
    Plugin Contributions
    13

    Default Re: I try to copy to new host.but not work

    Before you uploaded your old sql did you drop the tables of the new database? If not, when you exported your old database did it include drop table statements?

    After you uploaded the old sql did you upload the zc_install directory again and do a database upgrade?

    Instructions about how to rebuild your site in support of obtaining the latest version of ZC: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  4. #4
    Join Date
    Jul 2012
    Posts
    11,630
    Plugin Contributions
    13

    Default Re: I try to copy to new host.but not work

    1) Are you using a uri rewriter?
    2) Do you have a .htaccess file in the root of your "first site"?
    2a) if so, do you have one in your second site?
    2b) if have a .htaccess in your first site what are the contents of it (do not include reference to your admin directory, identify that "something" represents your admin directory but don't tell us what it is)
    3) Suggest providing your includes/configure.php from your old store and your new store, obscure the DB credentials. Please post by first pressing the # button in the message toolbar, then paste the code, then edit as necessary.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  5. #5
    Join Date
    May 2012
    Posts
    105
    Plugin Contributions
    0

    Default Re: I try to copy to new host.but not work

    Thanks I check my configure.php both are
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');

  6. #6
    Join Date
    May 2012
    Posts
    105
    Plugin Contributions
    0

    red flag Re: I try to copy to new host.but not work

    I am using EMeditor

    my orginal website configure.php is
    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.3.9
     * @copyright Copyright 2003-2010 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 2013-09-07 02:56:03
     */
    
    
    /*************** 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://directsilk.com');
      define('HTTPS_SERVER', 'https://directsilk.com');
    
      // 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', '/home/users/web/abcc/moo.directsilkcom');
    
      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', '');
      define('DB_SERVER', 'directsilkcom.fatcowmysql.com');
      define('DB_SERVER_USERNAME', 'abcde');
      define('DB_SERVER_PASSWORD', 'Ab!@');
      define('DB_DATABASE', 'my_zencart91');
      define('USE_PCONNECT', 'false');
      define('STORE_SESSIONS', 'db');
      // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage
    
      // 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', 'none'); 
      define('DIR_FS_SQL_CACHE', '/hermes/waloraweb092/b2907/moo.directsilkcom/cache');
    
    // EOF
    and the one I move into is
    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.3.9
     * @copyright Copyright 2003-2010 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 2016-01-24 09:08:20
     */
    
    
    /*************** 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://hoyatree.com');
      define('HTTPS_SERVER', 'https://hoyatree.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'true');
    
    // 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', '/silk/');
      define('DIR_WS_HTTPS_CATALOG', '/silk/');
    
      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', '/home2/babc/public_html/silk/');
    
      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', '');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'abcd_admin');
      define('DB_SERVER_PASSWORD', 'abbcc');
      define('DB_DATABASE', 'bacc_silk');
      define('USE_PCONNECT', 'false');
      define('STORE_SESSIONS', 'db');
      // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage
    
      // 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', 'none'); 
      define('DIR_FS_SQL_CACHE', '/home2/marywes/public_html/silk/cache');
    
    // EOF

    .htaccess in thr root:
    Code:
    #
    # @copyright Copyright 2003-2010 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version $Id: .htaccess 16111 2010-04-29 22:39:02Z drbyte $
    #
    # This is used with Apache WebServers
    
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Indexes
    #</Directory>
    ###############################
    
    # deny *everything*
    <FilesMatch ".*\..*">
    Order Allow,Deny
    Deny from all
    </FilesMatch>
    
    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(js|css|jpg|gif|png|html)$">
    Order Allow,Deny
    Allow from all
    </FilesMatch>
    
    IndexIgnore */*
    in the new installed
    Code:
    #
    # @copyright Copyright 2003-2010 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version $Id: .htaccess 16111 2010-04-29 22:39:02Z drbyte $
    #
    
    AuthType Basic
    AuthName "No access"
    AuthUserFile .htnopasswd
    AuthGroupFile /dev/null
    #Require valid-user
    
    
    ###############################
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified. 
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    
    # deny *everything*
    <FilesMatch ".*">
      Order Allow,Deny
      Deny from all
    </FilesMatch>
    
    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA)$">
      Order Allow,Deny
      Allow from all
      
      # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
      # (just uncomment the next 2 lines by removing the '#'):
    #  ForceType application/octet-stream
    #  Header set Content-Disposition attachment
    </FilesMatch>
    
    IndexIgnore */*
    
    
    ## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
    # OPTIONS -Indexes -ExecCGI
    hope can find way out

  7. #7
    Join Date
    Jul 2012
    Posts
    11,630
    Plugin Contributions
    13

    Default Re: I try to copy to new host.but not work

    Well, in your new system you have different file paths between DIR_FS_CATALOG and DIR_FS_CACHE for one (yes cache is added/necessary at the end of the second define, but the information up to that point is different).

    At last check there was a 500 error which is a problem upstream of the ZC php basically. The previous "test" seemed to work using the old (zc default) database, but doesn't work when your existing db is uploaded... There is also an "update" needed to the database reguarding the internally kept path of the cache directory that is available as a download. Fix cache key I think it is called. https://www.zen-cart.com/downloads.php?do=file&id=8
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

 

 

Similar Threads

  1. v154 I try to install BackUp ZC but not show in ADMIN
    By soso838 in forum General Questions
    Replies: 13
    Last Post: 23 Feb 2016, 12:46 AM
  2. Copy ZC to new server, but with fresh database?
    By mbridges in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Aug 2009, 09:36 PM
  3. Migrating to new host- admin won't work
    By blbaron in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 28 Oct 2008, 11:14 PM
  4. try to display the products_last_modified in tpl_product_info_display.php not work
    By yierhan2008 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 18 Jun 2008, 03:07 PM
  5. Moving to a new host, all moved but doesnt work
    By sparkiii in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 28 Jul 2007, 10:48 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