Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default No admin on moving to new host

    Hi.

    Been using Zen Cart successfully on an existing host - but now trying to move over to a new host. Followed the instructions here ( https://www.zen-cart.com/tutorials/i...hp?article=100 ) and all goes well in that the catalog works.

    New host: http://79.170.44.113/canavansalloys.com/catalog/

    The only thing I had to do outside of the tutorial, was rename my admin folder. Before I uploaded my own files and database, the sample data and admin worked OK on the new server.

    Now, when I go to the new admin pages, I a 500 internal server error. There's nothing on the server error logs to help. I've checked folder and file permissions on the renamed admin folder, and its all ok.

    The one thing that I'm wondering - because I've developing this site before transferring over the domain name, I'm referencing the site using the IP address. Could this be the cause? (...but on the other hand, the demo data fresh install worked OK before I uploaded my files and resored my database).

    Any pointers at all will be gratefully received.

  2. #2
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Re: No admin on moving to new host

    HI,

    It seems as though you may have not followed all the steps in the changing of admin folder name.

    Re read.

    The IP should not be an issue as long as addressing is correct.


    http://www.zen-cart.com/forum/showthread.php?t=69510
    That wasn't the plan!

  3. #3
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: No admin on moving to new host

    The thing is though.. on installing a fresh zen cart on the new host, I then renamed the admin (as per https://www.zen-cart.com/tutorials/index.php?article=33 ) and it worked 100%. I logged in ok to the admin.

    It was only after uploading my old files (except the 2 config files) that the admin link fell over.

  4. #4
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: No admin on moving to new host

    Another issue I was wondering about - the tutorial clearly states that you retain the 2 follwing config files from your fresh install on the new host:

    Don't overwrite the /includes/configure.php and /admin/includes/configure.php files on the NEW server.
    But what about /admin/configure.php ? Thats ones not mentioned. In saying that, I just edited it to match my other 2 config files, and the server error persists.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: No admin on moving to new host

    There's no such thing as an /admin/configure.php file in Zen Cart.

    There's /admin/includes/configure.php --- which contains database access settings.
    There's /admin/configuration.php --- which is a program script used when clicking the "Configuration" menu while using your browser to access admin settings.
    .

    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.

  6. #6
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: No admin on moving to new host

    Quote Originally Posted by DrByte View Post
    There's no such thing as an /admin/configure.php file in Zen Cart.

    There's /admin/includes/configure.php --- which contains database access settings.
    There's /admin/configuration.php --- which is a program script used when clicking the "Configuration" menu while using your browser to access admin settings.
    I'll bet thats one I ftp'd up to the live site into the wring folder once - and because its in my backups, I thought it was meant to be there.

    Still cant work out why this isnt working... and why the server erro log has no logged error when its just given me a 500 server error.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: No admin on moving to new host

    Quote Originally Posted by johnny_e View Post
    It was only after uploading my old files (except the 2 config files) that the admin link fell over.
    So, what exactly is different between your old files and the clean ones you overwrote?
    And did your FTP program damage any files by incomplete uploads?
    http://winmerge.sf.net
    .

    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
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: No admin on moving to new host

    Quote Originally Posted by DrByte View Post
    So, what exactly is different between your old files and the clean ones you overwrote?
    And did your FTP program damage any files by incomplete uploads?
    http://winmerge.sf.net
    I am assuming I only need to compare the admin directories?.. well I did a winmerge between my current faulty admin folder and my current live site which is on the old host - and the only 2 files that differ are the 2 config files.

    As well as trying the tutorial route - I also previously tried copying my live backup to the new host by FTP and restoring the database. Then I hand edited the 2 config files to match the working settings (as proven to work using demo data) - and it crashed the same way when trying to access admin.


    All fun & games!! Any other ideas/angles for me to try?

  9. #9
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Re: No admin on moving to new host

    Hi There,

    My suggestion is this.

    Start over.. remove everything from New host.

    Back up the OLD configure files onto your PC:

    includes/configure.php
    admin/includes/configure.php

    Get full backup of your website and database from OLD host.

    Install Zen cart on the new HOST.

    Try to name the database the same and use the same password.

    After successful installation.. connect to your site via FTP.

    Check out the configure files on the NEW host installation of Zen cart.

    Are your usernames, passwords, database names same as the ones from your OLD configure files you have backup up on your PC ?

    Back up the OLD configure files again on your PC.

    Edit the configure files on your PC... database name, password, usernames etc.. to match that of your new installation configure files.

    Is Zen cart working now?

    When working.. install you database following the steps and move your website files across from old host. (except the configure files!)

    Test.. if all working then follow the steps to apply the security patch.

    I know it is a lot of work.. but other than having access to all your files and hosting details it is hard to see where the problem is.. if you miss any of the above steps then things won't work and we can work out when your making your mistake.
    That wasn't the plan!

  10. #10
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: No admin on moving to new host

    Firstly, thanks to everyone for all the replies. It had me stumped this one...

    I tried again, and had the same problem. My config files were 100% (again!)

    Then, I did it different.

    I created the fresh install (with /admin using the default path). I copied up my old sites files - putting me renamed admin files into the new admin folder. It worked 100%. The catalog was fully functional as was the admin login.

    So.. then I tried to rename the admin folder as recommended - and hit the problem. But on re-checking, my config file changes were spot on.

    Then, I noticed the line in bold on the tutorial:

    ..need to make it Writable before you'll be able to upload/save your changes to the file.

    That is where my problem had been lying all along. I'd been FTP'ing up the modified admin/includes/configure.php file and I hadnt noticed that the changes didnt take effect. So - I deleted the configure file and uploaded the modified one - and hey presto - we're in business.

    So Muzz... your first reply to me above was spot on. I'd done something wrong renaming that admin.

    Thanks to all for your help

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. problem moving to new host
    By devlin in forum General Questions
    Replies: 4
    Last Post: 28 May 2012, 05:47 PM
  2. Problems Moving To New Host
    By breck in forum General Questions
    Replies: 5
    Last Post: 5 Mar 2009, 06:19 AM
  3. Moving Cart to new host
    By Djpete in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 25 Oct 2007, 12:36 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