Zen Cart Logo
Forums / General Questions / move zencart from one hosting to another

move zencart from one hosting to another

Locked

Views: 1,393

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
29 Nov 2009, 9:49 PM
#1
mitdrissia avatar

mitdrissia

New Zenner

Join Date:
May 2008
Posts:
24
Plugin Contributions:
0

move zencart from one hosting to another

I moved my old database to being uploaded to a new domain name.

I did everything like told in this thread:
https://www.zen-cart.com/tutorials/index.php?article=100

But i needed to upload a cache fix and all went fine.But now when i go to my new admin i still get my old admin.I even need to login with the old admin password not with the new one.

so what's the problem

Can anybody help me out?

29 Nov 2009, 9:52 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: move zencart from one hosting to another

If you restored the old database it has all the admin configuration stored in it.

So, the easiest thing is probably to make the alterations again.

Just to add another thought.

I believe that the tables in the database that control the admin settings are 'admin', 'configuration' and 'configuration_group' so if you have a backup of the 'original new' database then you may be able to restore these tables if you are happy with a bit of database manipulation.

30 Nov 2009, 2:22 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: move zencart from one hosting to another

Nick's answer is based on the assumption that you're actually accessing the new database.
And I'm hesitant to advise messing with the tables he mentioned.

I think your problem is really that your /admin/includes/configure.php file is pointing to the old HTTP_SERVER and/or contains database details pointing to the old database, not to the new one.

But, your post isn't clear about what exactly you mean by "I still get my old admin". Are you referring to "old admin URL"? or "old admin data seen after login"? or "old admin colors/template"? etc ...

30 Nov 2009, 3:55 AM
#4
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: move zencart from one hosting to another

Not sure if this will help you out...but check the URL of the store admin side. Is it the new one or the old one? If it's the old one...type in the new URL and see if that will bring up the new admin side to log into. Like I said, not sure if this will help you. I hope it does. Something this simple is easy to look over.
I recently transferred a site I built in my website and transferred it to a new URL. I was making changes and nothing was taking...come to find out, it was the old site and not the new one. I typed in the new URL and wham-o there it was.

Human error on my part.:yes:

30 Nov 2009, 8:46 AM
#5
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: move zencart from one hosting to another

Likewise, my comments, as usual, were mainly based on my previous errors. As always what Dr Byte says is true.

In my case a complete database export from the old site and then re-import to the new site caused similar symptoms to those you describe. And gave me a 'HUH??' moment. Particularly, when I couldn't log in to admin with the new log in details.

It seemed to make sense when I thought about it. All the configuration for the admin is stored in the database so when I replaced it all the configuration was replaced, effectively reverting the new site to the old site admin configuration. So, for instance, if I overwrite the table 'admin' then all the details of the admin names and their logins will be 'reverted' to the details of the old site.

I would take Dr Byte's advice and work out what exactly the problem is. Are you seeing the new database? Are you seeing the new admin at all?

Also, I kind of agree with his about being loath to mess with those tables. That's why in my case I just rebuilt my admin section by re-entering the values as per my initial advice.

30 Nov 2009, 12:03 PM
#6
mitdrissia avatar

mitdrissia

New Zenner

Join Date:
May 2008
Posts:
24
Plugin Contributions:
0

Re: move zencart from one hosting to another

DrByte:

Nick's answer is based on the assumption that you're actually accessing the new database.
And I'm hesitant to advise messing with the tables he mentioned.

I think your problem is really that your /admin/includes/configure.php file is pointing to the old HTTP_SERVER and/or contains database details pointing to the old database, not to the new one.

But, your post isn't clear about what exactly you mean by "I still get my old admin". Are you referring to "old admin URL"? or "old admin data seen after login"? or "old admin colors/template"? etc ...

DrByte, what i mean by "I still get my old admin" is that i can't login with my new admin i can only login with the old admin.The url is fine so it redirects to the new admin url but i need to login with old admin.

When i went through the last step for cache key it stated that all is fine. But still i have to login with old admin. I tried the key for 3 times still same problem.

Or doesn't the key work anymore?

30 Nov 2009, 12:15 PM
#7
mitdrissia avatar

mitdrissia

New Zenner

Join Date:
May 2008
Posts:
24
Plugin Contributions:
0

Re: move zencart from one hosting to another

I forgot to mention that i could not drop the files in database information schemes.
so when i imported the old sql file i got an error:
error 1044:can't access webwinkel where webwinkel is my old databasename.

so i looked it up in google and i needed to remove all lines between create database information schemes untill create database Webwinkel in sql file.
After that i imported the sql file and all was fine.Error was gone.

Shall i upload the sql file.

Ps after uploading old files i reuploaded the new config files so i don't uderstand why it still does not work.

30 Nov 2009, 12:45 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: move zencart from one hosting to another

If you COPY or CLONE a database, then everything in the NEW database will be an exact copy of what is in the ORIGINAL database - including login passwords, etc.

The purpose of FIX CACHE KEY is to make sure that the reference (in the database for the cache folder), is accurate.

(You can manually edit this under the SESSIONS menu option under admin >>> configuration too, if you prefer.)

When a site is copied/cloned your FIRST SIGHT of the new website will probably be IDENTICAL to the original site, until you make some manual edits of your own.

30 Nov 2009, 4:51 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: move zencart from one hosting to another

What was the DB_PREFIX in your OLD site's configure.php files?
What is it in your NEW files?

30 Nov 2009, 8:34 PM
#10
mitdrissia avatar

mitdrissia

New Zenner

Join Date:
May 2008
Posts:
24
Plugin Contributions:
0

Re: move zencart from one hosting to another

DrByte:Old db_prefix and new prefix are the same. Its empty so no prefix,i removed the default zencart prefix and field empty.

Schoolboy: The cache folder is accurate. It's stored in my new site.I allready used the key.Still i have to login with old admin and i even enter in my old admin settings. The only difference is the url.
Admin url is the new url, so it redirection is good.

30 Nov 2009, 8:56 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: move zencart from one hosting to another

Yes,,, but try to understand what I am saying...

If you COPY a full database, then import it into a new database, your login NAME and PASSWORD will be the same for the new website as it was for the old website, so:

http://www.OLDWEBSITE.com/admin :
User: your-username
Pass: your-pass

It will be the same at:

http://www.NEWWEBSITE.com/admin :
User: your-username
Pass: your-pass

As long as you are at:

http://www.NEWWEBSITE.com/admin

Just login...

1 Dec 2009, 9:51 PM
#12
mitdrissia avatar

mitdrissia

New Zenner

Join Date:
May 2008
Posts:
24
Plugin Contributions:
0

Re: move zencart from one hosting to another

ok schoolboy i think you are right.

thanks