Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    help question Cannot access admin screen after re-installig on new server; 1 of 3 carts affected

    I have 3 Zen Carts.

    I had to re-install all of them on a new server. I checked that the server met all the requirements.

    I am using Version 1.5.1 of Zen Cart. (I planned to upgrade after getting everything transferred properly.)

    The first two Zen Carts transferred with no problems. I made the database for each one and updated the two config files on each one.

    The third cart has the issue. I can see the website where my customers shop, but when I go to the admin log-in area, I get this error message:

    "The website cannot display the page.
    Most likely causes:
    •The website is under maintenance.
    •The website has a programming error.

    This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying."

    Since my cart was working properly before the server change, and since I knew what I was doing with the other two carts and thought I did the exact same thing with this one, what am I doing wrong?! :-) Any ideas, please?

  2. #2
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    help question Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    If I entirely remove the catalog/admin/includes/configure.php file, then I get the message that says it is either my first time installing the Zen Cart or ....

    "2.Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
    If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
    Additionally, if the permissions have been changed on your configure.php files, then maybe they're too low for the files to be read.
    Or the configure.php files could be missing altogether.
    Or your hosting company has recently changed the server's PHP configuration (or upgraded its version) then they may have broken things as well."

    Of course I am sure the latter is the problem since this is not a first-time install, but I still don't know what is wrong, but it feels to me like it is the configure.php file. ???

  3. #3
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    Default Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    When I put the configure.php file back in the admin/includes area, now when I go to the admin log-in, I get a white screen with no error message. :-(

  4. #4
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    Default Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    No, the error message is still there. Just depends on the browser I used. I have checked on multiple devices. Still cannot see the log-in screen for admin. I restored the database as I should in the first place, and it said it was successful. Anyone have any guidance?!

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    Quote Originally Posted by CookieMonster View Post
    No, the error message is still there. Just depends on the browser I used. I have checked on multiple devices. Still cannot see the log-in screen for admin. I restored the database as I should in the first place, and it said it was successful. Anyone have any guidance?!
    Post the contents of the admin/includes/configure.php without the DB_PASSWORD and without the admin directory being displayed (substitute admin as necessary), further place the posted content within [CODE] tags like when selecting the # symbol in the toolbar above. It would also be helpful to see the store version for comparison... More than likely a path has not been entered/modified correctly.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    Default Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    Thanks for the reply.

    Could my database backup have an error? I hope not because it is the only back-up I have of it, and it seemed to back-up successfully. Also, all my products have loaded in the store view.

    Here is the code for the configure.php page in admin/includes. It is identical, (as far as I can tell), to the other two carts I successfully moved to the new server. I am using Version 1.5.1. Maybe I should just start from scratch on a new install of the most updated Zen Cart and then use my old database with the new cart?


    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.5.1
     * @copyright Copyright 2003-2012 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-04-18 10:06:28
     */
    
    
    /*************** 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.      ***********/
    
    /**
     * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
     * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
     */
      define('HTTP_SERVER', 'http://www.mywebsitename.com');
      define('HTTPS_SERVER', 'https://www.mywebsitename.com');
      define('HTTP_CATALOG_SERVER', 'http://www.mywebsitename.com');
      define('HTTPS_CATALOG_SERVER', 'https://www.mywebsitename.com');
    
      // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_ADMIN', 'false');
    
      // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_CATALOG', '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)
      $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
    
      define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_CATALOG', '/catalog/');
      define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_HTTPS_CATALOG', '/catalog/');
    
      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)
      define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
      //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/myhostingusername/public_html/foldername/catalog/');
    
      //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
      define('DIR_FS_LOGS', '/home/myhostingusername/public_html/foldername/catalog/logs');
    
      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_CHARSET', 'utf8');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'myusername');
      define('DB_SERVER_PASSWORD', '######');
      define('DB_DATABASE', 'mydatabasename');
    
      // 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/myhostingusername/public_html/foldername/catalog/cache');
    
    
    // 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
       */
    // EOF

  7. #7
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    Database error would more than likely result in nothing at all on either side... All of these are hosted on the same server? Have you looked at the issues identified at: http://www.zen-cart.com/showthread.p...s)-with-v1-5-4

    Related to ZC 1.5.4?

    Also, because the provided configure.php file was so heavily modified, I would recommend taking a deep breath, a couple of breaks, and revisiting your comparison between the admin and store versions. Perhaps an extra character in one or the other file that is not jumping out? There are also comparison programs that might help a little, but some of the significant differences are just differences between store and admin.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    Oh, sorry, forgot using 1.5.1... There is a similar thread, but I don't recall the same admin issues occurring...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    Default Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    Yes, I am using Version 1.5.1.

    I did not modify that configure.php file at all except for where my info would go. It was modified by the system at set-up and then I modified the new path name in the correct areas when I moved to the new server. I also modified now when you asked me to post and take out identifying info, but I have not modified the file at all (aside from the path name needing to be changed with the server move).

    Anyone have any ideas?

  10. #10
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    Default Re: Cannot access admin screen after re-installig on new server; 1 of 3 carts affecte

    No one else needs to reply. I decided to just install the new one and add my database to it. I will have to perform a lot of "tweaking" of my pages, but it looks like I can access the admin area in the new version and everything seems to be working that way now. Thanks to anyone who took the time to read this and brainstorm for me. :-)

 

 

Similar Threads

  1. cannot login to admin pages after moving to new server
    By longhaired1 in forum General Questions
    Replies: 5
    Last Post: 5 Oct 2015, 11:07 PM
  2. Cannot access /admin/ after new install.
    By JoeToys in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 14 Jul 2015, 11:19 AM
  3. v152 Cannot access any carts on server
    By pewe in forum General Questions
    Replies: 10
    Last Post: 12 Apr 2014, 12:38 PM
  4. Can't access Admin after moving to new server
    By eranariel in forum General Questions
    Replies: 5
    Last Post: 25 Apr 2011, 09:35 AM
  5. cannot log in admin area after moveto new server
    By sunriseimports in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 16 Jun 2009, 02:57 AM

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