Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2012
    Posts
    15
    Plugin Contributions
    0

    Default Moved to a LINUX server and admin page comes up blank

    I have going thorugh everything I can find on the issue of moving from one server to another. I used the document oulining how to do the migration and everything went smoothly.

    Of note, The new installation to the linux server went as easy as this doc outlined:
    http://www.zen-cart.com/content.php?...fferent-server


    The installation was checked and I logged into the admin and catalog area. After uploading the old files, importing the SQL and running "fix_Cache_key" the website's main area was displayed in Maintenance mode as was the plan. THe admin area, however, comes up as a blank page. I went through the following page:

    http://www.zen-cart.com/content.php?...working-for-me

    and the only outstanding thing was that there were https: in the ssl urls but that the enable SSL was set to false. none of the suggestions from the above page seemed to help.
    I did notice that there is no"Sessions" line anywhere in my admin>includes>configure.php
    Also, I have an htaccess file on my pc but when I upload it to the site it accepts it then disapears.

    It seems to me this is not a session issue but I can't really find anything wrong in my configs files either. Any help would be appreciated because just today the site actually got some unexpected press but I am currently down.

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

    Default Re: Moved to a LINUX server and admin page comes up blank

    Post both of your configure.php file contents here - x'ing out the db details
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Moved to a LINUX server and admin page comes up blank

    Here's the RAW "dist_configure.php" file for admin/includes...
    PHP Code:
    <?php
    /**
     * SAMPLE dist-configure.php
     *
     * @package Configuration Settings
     * @package Admin
     * @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
     * @version GIT: $Id: Author: DrByte  Tue Jul 31 17:24:25 2012 -0400 Modified in v1.5.1 $
     * @private
     */
    /**
     * 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://localhost');
      
    define('HTTPS_SERVER''https://localhost');
      
    define('HTTP_CATALOG_SERVER''http://localhost');
      
    define('HTTPS_CATALOG_SERVER''https://localhost');

      
    // 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''/');
      
    define('DIR_WS_HTTPS_ADMIN'preg_replace('#^' str_replace('-''\-'$p2) . '#'''dirname($_SERVER['SCRIPT_NAME'])) . '/');
      
    define('DIR_WS_HTTPS_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_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__) . '/../') . '/');
      
    define('DIR_FS_CATALOG''/');

      
    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''');
      
    define('DB_SERVER_PASSWORD''');
      
    define('DB_DATABASE''');

      
    // 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''/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');


    //Explanations of 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
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.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
     */
    Does yours contain all the defines?
    20 years a Zencart User

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Moved to a LINUX server and admin page comes up blank

    Your subject line says "admin page comes up blank". But you've not posted what errors are being logged. http://www.zen-cart.com/content.php?124-blank-page
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Moved to a LINUX server and admin page comes up blank

    Quote Originally Posted by DrByte View Post
    Your subject line says "admin page comes up blank". But you've not posted what errors are being logged. http://www.zen-cart.com/content.php?124-blank-page
    Ah, I hadn't seen that page. Good info there. I have the logs and the warnings are of the "headers are already sent" variety.

    I am going to go through that page's suggestions before I post any more info. I will let you know how it ends up.

  6. #6
    Join Date
    Sep 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Moved to a LINUX server and admin page comes up blank

    oy The first log started with this.

    Code:
    [01-Apr-2013 15:37:33] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/xxxxxxxx/xxx/xxx/xxx/web/MYSTORE/MYNEWADMIN/includes/classes/logger.php:127) in /home/xxxxxxxx/xxx/xxx/xxx/web/MYSTORE//includes/functions/sessions.php on line 113
    the logger.php file had two lines after the ?> I fixed that, then each subsequent error log started with another .php file in the /MYNEWADMIN/includes/classes/ directory.
    I have since gone through each and every file in that directory and removed extra lines at the end.

    Well now the new error logs report this.

    Code:
    [01-Apr-2013 18:23:43] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/xxxxxxxx/xxx/xxx/xxx/web/MYSTORE/MYNEWADMIN/includes/extra_datafiles/music_type_database_names.php:49) in /home/xxxxxxxx/xxx/xxx/xxx/web/MYSTORE/includes/functions/sessions.php on line 113
    So, painful as it sounds, it appears my old server had no issue with my files having spaces at the end of the php code and my new one does. From the looks of it, all of my files will need to be changed. Is there any other fix that you can think of that would be a swifter resolution?
    Last edited by bulpup; 1 Apr 2013 at 11:41 PM.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Moved to a LINUX server and admin page comes up blank

    Sounds like whatever process you used to transfer files between servers has mangled the line-endings on all your files.

    You'll need to clean them up one-by-one.

    Usually when that happens, I go to the copy on my PC instead, and copy those up to the server. Of course, this assumes that the files on my PC already contain all the customizations that my server files contain. This is where reliable backups are important. So is a good FTP program.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Sep 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Moved to a LINUX server and admin page comes up blank

    Quote Originally Posted by DrByte View Post
    Sounds like whatever process you used to transfer files between servers has mangled the line-endings on all your files.

    You'll need to clean them up one-by-one.

    Usually when that happens, I go to the copy on my PC instead, and copy those up to the server. Of course, this assumes that the files on my PC already contain all the customizations that my server files contain. This is where reliable backups are important. So is a good FTP program.
    Yea. 56 and counting. Random and all over the place. This was all done via Filezilla, which I find pretty reliable. Although, come to think of it, the connection was rather flaky during the download. Timeouts and retries but no failures.

    That must have been where it happened.

 

 

Similar Threads

  1. My site is dead - moved hosting and now only get a blank page
    By xmorera in forum Basic Configuration
    Replies: 1
    Last Post: 10 Feb 2011, 04:47 AM
  2. Replies: 4
    Last Post: 23 Jan 2011, 11:57 PM
  3. Moved server and admin my store error
    By PhillipHarrison in forum General Questions
    Replies: 2
    Last Post: 9 Dec 2008, 09:35 AM
  4. Welcome to Zecart page after moving from Windows server to Linux Server
    By smartmomma in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 21 May 2008, 12:36 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