Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default transferred site, not connecting to admin or DB

    I have just uploaded an existing fileset and database to a new webhost. I have done this about 10 times before and this is the first time I've had problems.

    The site is displaying but it's just the default classic green template without the right layout and with no products.

    When I try to connect to Admin I get 404 page not found, although I can see it there on the server (in my FTP client).

    I have checked and rechecked the database name, DB username, password. Both configure files are correct, with correct permissions.

    The only possible anomaly I can find is that in my includes/configure.php file I keep changing the http server and https server to glasscrafts.com.au but when I close the file it reverts to the IP address. But vice versa for the admin/includes/configure.php. So the two files never show the same server addresses (same address but one is IP, one URL). Is this weird?

    www.glasscrafts.com.au

    Any ideas? TIA...
    Last edited by jenpen; 27 Sep 2014 at 05:16 AM.

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: transferred site, not connecting to admin or DB

    After downloading your 2 configure.php files, are there any traces of
    glass382
    left?

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: transferred site, not connecting to admin or DB

    Quote Originally Posted by jenpen View Post
    The only possible anomaly I can find is that in my includes/configure.php file I keep changing the http server and https server to glasscrafts.com.au but when I close the file it reverts to the IP address.

    Any ideas? TIA...
    Well, there is the 'obvious'. Are you changing the configure.php file permissions to make them writable before making your changes?

    Also, what are you changing them to 664, 666, 775, 777 or something else? If 777 then try a more restrictive setting (664 is generally sufficient). Some servers have been configured to dissallow file permissions of 777, and when tried they will either cause a server failure or they will be reset to something a little more secure.

    Cheers
    RodG

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: transferred site, not connecting to admin or DB

    Quote Originally Posted by RodG View Post
    Well, there is the 'obvious'. Are you changing the configure.php file permissions to make them writable before making your changes?

    Also, what are you changing them to 664, 666, 775, 777 or something else? If 777 then try a more restrictive setting (664 is generally sufficient). Some servers have been configured to dissallow file permissions of 777, and when tried they will either cause a server failure or they will be reset to something a little more secure.

    Cheers
    RodG
    That is the obvious, but if you try to call

    http://www.glasscrafts.com.au/admin/

    which should result in a 404 or similar you actually get

    http://www.glasscrafts.com.au/~glass...ALERT_PAGE.php

    in the address bar.

    Also, if you pull up http://www.glasscrafts.com.au/ and then hover over the ZC logo on the Classic Green template you get

    [ip-address]/~glass382/

    So, me thinks that there are still remnants of 'glass382' in the configure files.

    Ofc, permissions should be changed to 777 before editing these files and back to 400 or 444 after the edit is done.
    Last edited by frank18; 27 Sep 2014 at 11:55 AM.

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: transferred site, not connecting to admin or DB

    Quote Originally Posted by jenpen View Post
    I have just uploaded an existing fileset and database to a new webhost. I have done this about 10 times before and this is the first time I've had problems.

    The site is displaying but it's just the default classic green template without the right layout and with no products.

    When I try to connect to Admin I get 404 page not found, although I can see it there on the server (in my FTP client).

    I have checked and rechecked the database name, DB username, password. Both configure files are correct, with correct permissions.

    The only possible anomaly I can find is that in my includes/configure.php file I keep changing the http server and https server to glasscrafts.com.au but when I close the file it reverts to the IP address. But vice versa for the admin/includes/configure.php. So the two files never show the same server addresses (same address but one is IP, one URL). Is this weird?

    www.glasscrafts.com.au

    Any ideas? TIA...
    Your registered domain points to these name servers:

    ns1.hostpapa.com
    ns2.hostpapa.com

    Last Modified: 26-Sep-2014 03:50:32 UTC which is 13:50:32 AEST.

    Did you assign new domain name servers at that time and immediately after installed your new ZC file set?

    Please post your 2 configure.php files here (minus sensitive information such as DB name, user and pwd) so we can have a look at them.

  6. #6
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default Re: transferred site, not connecting to admin or DB

    Thanks everyone but still no joy.

    frank18, glass382 is the new prefix. But I checked for glasscra, the old one, and there was no trace.

    RodG, thanks, the server does have its own ideas of what the permissions should be. I managed to get the URL to stick in the http and https server fields, using your advice. But it didn't help. At least I can rule that out.

    And frank18, yes, I did assign new domain name servers immediately after I installed the new ZC file set. Should I delete the full file set and re-upload?

    I'll paste the files into the next two posts.

  7. #7
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default Re: transferred site, not connecting to admin or DB

    Here's admin/includes/configure.php

    <?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 2014-09-26 12:43:05
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // Main webserver: eg-http://www.your_domain.com -
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
    /*
    * URLs for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    *
    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://www.glasscrafts.com.au');
    define('HTTPS_SERVER', 'https://www.glasscrafts.com.au');
    define('HTTP_CATALOG_SERVER', 'http://www.glasscrafts.com.au');
    define('HTTPS_CATALOG_SERVER', 'https://www.glasscrafts.com.au');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', '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_ADMIN', '/~glass382/admin/');
    define('DIR_WS_CATALOG', '/~glass382/');
    define('DIR_WS_HTTPS_ADMIN', '/~glass382/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/~glass382/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

    // * 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_ADMIN', '/home/glass382/public_html/admin/');
    define('DIR_FS_CATALOG', '/home/glass382/public_html/');

    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'glass382_xxxxxxxxxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxxxxxxxx');
    define('DB_DATABASE', 'glass382_xxxxxxxxxxxxxxxxx');
    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', '/home/glass382/public_html/cache');

    // EOF

  8. #8
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default Re: transferred site, not connecting to admin or DB

    And here's includes/configure.php

    <?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 2014-09-26 12:43:05
    */


    /*************** 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://www.glasscrafts.com.au');
    define('HTTPS_SERVER', 'https://www.glasscrafts.com.au');

    // 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', '/~glass382/');
    define('DIR_WS_HTTPS_CATALOG', '/~glass382/');

    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/glass382/public_html/');

    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', 'glass382_xxxxxxxxxxxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxxxxxxxx');
    define('DB_DATABASE', 'glass382_xxxxxxxxxxxxxxxxx');
    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', '/home/glass382/public_html/cache');

    // EOF


    Thanks again

  9. #9
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: transferred site, not connecting to admin or DB

    I guess I was spot-on with the remnants of glass382 in your configure.php files.

    Admin file:

    // 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_ADMIN', '/~glass382/admin/');
    define('DIR_WS_CATALOG', '/~glass382/');
    define('DIR_WS_HTTPS_ADMIN', '/~glass382/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/~glass382/');
    Store file:

    // 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', '/~glass382/');
    define('DIR_WS_HTTPS_CATALOG', '/~glass382/');
    The highlighted stuff is giving you your headaches....

    Firstly, never upgrade ZC and move your site at the same time!

    Rather than stuffing around with the 2 configure files I suggest this plan of action - assuming you have a full backup of your file system and your DB, all from your old installation on your old server.

    1. On your new server delete all files
    2. using phpMyAdmin navigate to your DB and drop all tables leaving you with a blank DB
    3. if your old install was 1.3.9h then upload a fresh ZC 1.3.9h fileset
    4. run zc_install using the instructions for a 1.3.9h installation
    5. rename your admin folder, reflect the changes in your configure.php files and then set the permissions of your 2 configure.php files to 400 or 444
    6. test that all is working
    7. if all ok then go back to phpMyAdmin and navigate to your DB and drop all tables leaving you again with a blank DB
    8. import your backed up DB into the new blank DB
    9. upload your backed up 1.3.9h files overwriting all but the 2 configure.php files (it should give you a transfer error in your FTP client)
    10. test again and see that all is working ok.
    11. if all ok then you have succeeded in transferring your 1.3.9h site to the new server.

    The next step would be upgrading 1.3.9h to 1.5.3

    If you need any help with this then send me a pm or email office (at) isonetwork (dot) net (dot) au

    Good luck / Frank

  10. #10
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: transferred site, not connecting to admin or DB

    The long (official) version of my suggestion can be found here http://www.zen-cart.com/content.php?...fferent-server

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v153 Transferred database to new site, forgot to upload address_book table.
    By joecooper in forum General Questions
    Replies: 2
    Last Post: 3 Jun 2015, 09:26 AM
  2. Admin Login Not Connecting
    By txscooterd in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 18 Nov 2010, 07:25 AM
  3. Transferred Site to new host
    By cactusranger71 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 18 Dec 2009, 01:14 AM
  4. Waiting for my site to be transferred can I start working on my cart now?
    By Hansen Enterprises in forum General Questions
    Replies: 5
    Last Post: 21 Jul 2008, 10:22 PM
  5. Can not access transferred site
    By cnsystems in forum General Questions
    Replies: 1
    Last Post: 15 Feb 2007, 11:16 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