Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2005
    Posts
    24
    Plugin Contributions
    0

    Default Moving to a new Server

    I have spent the last week trying to move a site, I just cannot get it right. The configs I am sure are right. The data base connect is right. I follwed the moving server instructions but when I run the fix_cache_key.php I just can't get rid of the old servers path usr/local/psa/home/vhosts/silverenergies.com. The new path is /home/silveren/public_html.

    I tried storing sessions in database and in a file and still no luck. I change the dns back so this is where the new version is: http://70.85.180.226/~silveren/

    Any ideas please before I don't hae a single hair in my head left!

    Warning: session_start() [function.session-start]: open(/usr/local/psa/home/vhosts/silverenergies.com/httpdocs/cache/sess_6d14a738a2f4f2f772d3d9f8a07b5b14, O_RDWR) failed: No such file or directory (2) in /home/silveren/public_html/includes/functions/sessions.php on line 102

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/silveren/public_html/fix_cache_key.php:43) in /home/silveren/public_html/includes/functions/sessions.php on line 102

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/silveren/public_html/fix_cache_key.php:43) in /home/silveren/public_html/includes/functions/sessions.php on line 102

    Warning: Cannot modify header information - headers already sent by (output started at /home/silveren/public_html/fix_cache_key.php:43) in /home/silveren/public_html/includes/init_includes/init_templates.php on line 78

    1054 Unknown column 'startdate' in 'field list'
    in:
    [select startdate, counter, session_counter from counter_history where startdate='20070129']


    Warning: Unknown(): open(/usr/local/psa/home/vhosts/silverenergies.com/httpdocs/cache/sess_6d14a738a2f4f2f772d3d9f8a07b5b14, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/local/psa/home/vhosts/silverenergies.com/httpdocs/cache) in Unknown on line 0

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Moving to a new Server

    open this file
    fix_cache_key.php

    then put cursor at very end of file Right behind the last ?>
    hit delete 10 times
    save and re-upload,
    please do not use your c-panels filemanager for this
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Nov 2005
    Posts
    24
    Plugin Contributions
    0

    Default Re: Moving to a new Server

    Oh that I could be so lucky, I edited out the extra spaces with notepad and no luck, this is what it says, it just seems determined to keep its old memory, I am losing my mind:

    Warning: session_start() [function.session-start]: open(/usr/local/psa/home/vhosts/silverenergies.com/httpdocs/cache/sess_679ffe12b730962b96cdd3887793bc30, O_RDWR) failed: No such file or directory (2) in /home/silveren/public_html/includes/functions/sessions.php on line 102

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/silveren/public_html/fix_cache_key.php:43) in /home/silveren/public_html/includes/functions/sessions.php on line 102

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/silveren/public_html/fix_cache_key.php:43) in /home/silveren/public_html/includes/functions/sessions.php on line 102

    Warning: Cannot modify header information - headers already sent by (output started at /home/silveren/public_html/fix_cache_key.php:43) in /home/silveren/public_html/includes/init_includes/init_templates.php on line 78

    1054 Unknown column 'startdate' in 'field list'
    in:
    [select startdate, counter, session_counter from counter_history where startdate='20070129']


    Warning: Unknown(): open(/usr/local/psa/home/vhosts/silverenergies.com/httpdocs/cache/sess_679ffe12b730962b96cdd3887793bc30, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/local/psa/home/vhosts/silverenergies.com/httpdocs/cache) in Unknown on line 0

  4. #4
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Moving to a new Server

    try going and getting
    www.textpad.com
    or
    www.crimsoneditor.com

    notepad is notorious for thinking its smarter than you are and adding crap to the ends of lines
    Zen cart PCI compliant Hosting

  5. #5
    Join Date
    Nov 2005
    Posts
    24
    Plugin Contributions
    0

    Default Re: Moving to a new Server

    I went to my previous server and exported the data using mysl40 format as believe the old server had a more current version. Copied in the new database.

    Then I ran the file and it worked and got rid of the wrong cache path. Now it says the below error, I uploaded the files again as the templeates are there so not sure what to do. Any idea.

    Warning: main(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [function.main]: failed to open stream: No such file or directory in /home/silveren/public_html/index.php on line 43

    Warning: main(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [function.main]: failed to open stream: No such file or directory in /home/silveren/public_html/index.php on line 43

    Warning: main(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [function.main]: failed to open stream: No such file or directory in /home/silveren/public_html/index.php on line 43

    Fatal error: main() [function.require]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/silveren/public_html/index.php on line 43

  6. #6
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Moving to a new Server

    looks like your configure.php files are a little off
    best to install and run the zc_install ( UPDATE CONFIG FILES ONLY )
    Zen cart PCI compliant Hosting

  7. #7
    Join Date
    Nov 2005
    Posts
    24
    Plugin Contributions
    0

    Default Re: Moving to a new Server

    Thank you so much for being here for me. I ran zc-install which I couldn't before and I am away.

    I believe my previous host had a newer sql version and once I exported the data using sql40, removed the spaces from the fix_cache_key.php and ran that I was then able to successfully run zc-install which cleaned up everything.

    Thanks again.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 16 Mar 2012, 07:47 AM
  2. Moving to new server
    By sarahandpaul in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 29 Jul 2010, 01:31 AM
  3. moving to a new server
    By kjharrison in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 15 Sep 2008, 01:41 AM
  4. Moving to a new server
    By snowy2008 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 25 Jun 2008, 11:31 PM
  5. Moving DB to New Server
    By czone in forum Installing on a Windows Server
    Replies: 3
    Last Post: 23 Jun 2006, 04:04 AM

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