Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default new directory and database

    I have a new database created with my old database uploaded into it... I have changed my configure files to match the new database name and password. It appears my site is not "seeing" the new database. I assume I have something wrong with my directory? I don't totally understand what the directory is and how I change it. I see the directory path in my configure file, but how do I know what to change it to? Any help would be great!

  2. #2
    Join Date
    Aug 2005
    Posts
    26,065
    Plugin Contributions
    9

    Default Re: new directory and database

    Post details about where it is installed and your configure.php contents
    X-out the db user & pass
    Zen-Venom Get Bitten
    Get Your Business Found

  3. #3
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: new directory and database

    Is this what you are looking for? I pulled these out of my zc>admin>configure.php. Also the same in my zc>includes>configure.php

    ('DIR_FS_CATALOG', '/home/content/x/x/x/xxxx/html/zencart/')
    ('DIR_FS_SQL_CACHE', '/home/content/x/x/x/xxxx/html/zencart/cache')

    perhaps I just need to add on the end /admin/configure.php or includes/configure.php ?
    Last edited by cactusrunning; 10 Nov 2010 at 05:03 PM.

  4. #4
    Join Date
    Aug 2005
    Posts
    26,065
    Plugin Contributions
    9

    Default Re: new directory and database

    Is this what you are looking for?
    No...

    That does not detail where you have it installed and you need to post the entire configure contents not just a part
    Zen-Venom Get Bitten
    Get Your Business Found

  5. #5
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: new directory and database

    Oh sorry. How about this?

    <?php
    /**
    * dist-configure.php
    *
    * @package Configuration Settings
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
    * @private
    */
    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
    define('HTTP_SERVER', 'http://xxxxx.com');
    define('HTTPS_SERVER', 'https://xxxxxx.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', '/zencart/');
    define('DIR_WS_HTTPS_CATALOG', '/zencart/');

    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/content/x/x/x/xxxxxxx/html/zencart/');

    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', 'zen_'); // prefix for database table names -- preferred to be left empty
    define('DB_SERVER', 'xxxxsqlxxx.secureserver.net');
    define('DB_SERVER_USERNAME', 'xxxxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxx');
    define('DB_DATABASE', 'xxxxxxxx');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // 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', '/home/content/x/x/x/xxxx/html/zencart/cache');

    ?>

  6. #6
    Join Date
    Aug 2005
    Posts
    26,065
    Plugin Contributions
    9

    Default Re: new directory and database

    Is your ZenCart install in a folder named /zencart ?
    IS the correct DB details entered?

    What issue are you having?
    Error message or??

    You appear to be hosted with the troublesome GoDaddy??
    Zen-Venom Get Bitten
    Get Your Business Found

  7. #7
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: new directory and database

    Is your ZenCart install in a folder named /zencart ?
    Well what is interesting is I currently don't have a ZC install in my database or files. I have it ready to go for the new upgrade, but thought I needed to make a "fake" site first before clicking upgrade. I thought the directory name and new database name were how you created a "fake" site.

    IS the correct DB details entered?
    I have changed them to the new name and password, but it stops my website from working, so I changed it back to the old name and password which allows my site to be fully functional.

    What issue are you having?
    Currently no issues I guess... I am trying to upgrade to 1.3.9 and am trying to follow the steps given for upgrading, but always get parts of it completed and other parts not. Should I try to go ahead and click "upgrade" on my zc install browser url link or will this in fact start upgrading my live site which could cause it to stop working again?

    Error message or??

    the only error message i get when i change the configure files is "sorry, our database seems to be temporarily unavailable"

    You appear to be hosted with the troublesome GoDaddy??
    yes hosting with go daddy, who has been very helpful in getting things working and restored.

  8. #8
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: new directory and database

    I see here I don't have a new directory folder under my html. Maybe that is why I can't create my "fake" site? I guess I need to create a new folder under my html to put all my files into? I do this the normal way and create the new folder, then check all the filenames under my zc, then copy them to the new folder? Then go into this new "directory" and change the configure files to match the new database name and password I have already created. This will allow my current site to still be fully functional while I click "upgrade" in the new directory site right?

  9. #9
    Join Date
    Aug 2005
    Posts
    26,065
    Plugin Contributions
    9

    Default Re: new directory and database

    This will allow my current site to still be fully functional while I click "upgrade" in the new directory site right?
    DO NOT click upgrade!!!!!

    If this is a host provided feature - - it will not do as you think

    Follow the tutorial I have linked you to before

    This is a MANUAL method for upgrading and the only method you should be using
    Zen-Venom Get Bitten
    Get Your Business Found

  10. #10
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: new directory and database

    It was not a host provided feature. I have gotten the zc install loaded and ready to go, but haven't clicked upgrade yet:

    I got here from following step 7 and 8 on one of the links you sent previous. But my issues is I have completed steps 1, 2, 4, 7, 8, but not the others. Figure I need the new directory name (step 3) before I can change my configure files and have them work properly (step5) then hopefully click upgrade (step 9) and finish up with steps 10 and 11.
    Last edited by cactusrunning; 10 Nov 2010 at 05:44 PM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 15 Oct 2010, 07:18 AM
  2. Adding another sub-directory level to Image Directory?
    By erko in forum General Questions
    Replies: 0
    Last Post: 31 May 2010, 12:33 PM
  3. Test on sub directory using same database
    By Decostyle in forum Installing on a Windows Server
    Replies: 1
    Last Post: 1 Jul 2008, 12:30 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
  •