Forums / Installing on a Linux/Unix Server / No admin on moving to new host

No admin on moving to new host

Locked

Views: 2,863

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
15 Oct 2009, 1:59 PM
#1
johnny_e avatar

johnny_e

New Zenner

Join Date:
Jun 2008
Posts:
12
Plugin Contributions:
0

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/index.php?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.

15 Oct 2009, 2:40 PM
#2
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

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!

15 Oct 2009, 2:45 PM
#3
johnny_e avatar

johnny_e

New Zenner

Join Date:
Jun 2008
Posts:
12
Plugin Contributions:
0

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.

15 Oct 2009, 3:58 PM
#4
johnny_e avatar

johnny_e

New Zenner

Join Date:
Jun 2008
Posts:
12
Plugin Contributions:
0

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.

15 Oct 2009, 5:11 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

15 Oct 2009, 5:16 PM
#6
johnny_e avatar

johnny_e

New Zenner

Join Date:
Jun 2008
Posts:
12
Plugin Contributions:
0

Re: No admin on moving to new host

DrByte:

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... :no: and why the server erro log has no logged error when its just given me a 500 server error.

15 Oct 2009, 5:25 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: No admin on moving to new host

johnny_e:

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.

15 Oct 2009, 9:40 PM
#8
johnny_e avatar

johnny_e

New Zenner

Join Date:
Jun 2008
Posts:
12
Plugin Contributions:
0

Re: No admin on moving to new host

DrByte:

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.

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

16 Oct 2009, 2:00 AM
#9
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

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!

20 Oct 2009, 8:39 AM
#10
johnny_e avatar

johnny_e

New Zenner

Join Date:
Jun 2008
Posts:
12
Plugin Contributions:
0

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 :clap:

26 Oct 2009, 12:31 AM
#11
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: No admin on moving to new host

Glad it's all working:)

You will go through some hair losing moments. But luckily, zen cart has an great community who will do their best to steer you in the right path. I'm learning and asking questions constantly. If I read that someone is having a similar experience to what I have done myself. I try to help out! Let the real Zen Cart pro's have a rest :)

That wasn't the plan!