View Full Version : New domain with a backup of another database.
Fready
09-28-2011, 12:47 PM
What i did today was.
Copied all my vb files from my cpanel for an existing forum.
Exported all the files from the data base.
Re uploaded all the new files and data base to a new data base and folder for a new domain.
Edited the config.php to the new data base.
But when I tried to log into the new Forum with the new URL it just redirected me to the old working Forum.
So how can I get this to work?
Edit your includes/config.sys (if you haven't already) and make sure all the settings are for your new server. Then on the new site go to the options in the adminCP, and under "Site Name / URL / Contact Details" make sure the Forum URL and home page URL are set to your new site.
Fready
09-28-2011, 01:27 PM
This is the problem kh99, I put in the data base name, urser name and password in the config.php but when going to the new URL it takes me to the Admin panel but when I try to log in it redirects me to the existing URL/other domain.
So i am unable to change the Site URL in the Admin panel.
The reason I am doing this is that I had modified and edited so much on the other site I though instead of starting from scratch again I could just use the data base and files from one to the other.
But this one has got me, on how to do it.
Oh, right, you're trying to log in. Did you try (after logging in and getting redirected) just going to http://www. yoursite.com/admincp ?
Fready
09-28-2011, 02:01 PM
Yes, and it was the new URL, but as soon as i logged in it sent me to the other URL.
There must be a way of doing what I want to do but it's just knowing what to do.
Probably something very simple I'm missing doing,
You could try editing the database directly, the record in the datastore table where title = "options", and change the forum url (it's in serialized format so you either need to leave the field the same length or fix the length value).
I don't know anything about tranfering a site, but I think I remember reading a post saying that there's some reason you shouldn't do what you're trying to do. (That's not much help, I know).
Fready
09-28-2011, 02:24 PM
Been looking in the files in the data base but i can't find the options fro changing the URL
nhawk
09-28-2011, 02:42 PM
I just finished doing this exact thing for a client of mine. (moved forum from one URL to a new URL but kept exisiting forums, users, etc.).
When you backed up the database, did you disable all hooks and plugins in AdminCP on the original site before backing up the database? (ACP->Settings->Options->Plugin/Hook System)
To be double sure, I also disable all products except the ones included in a default vBulletin install.
Fready
09-28-2011, 03:07 PM
I didn't disable them no.
So how would that make the problem I got?
What do I need to do?
How did you do what i am wanting to do without the new Forum redirecting to the other Forum when trying to get into the Admin CP?
nhawk
09-28-2011, 03:18 PM
I'm not sure if it would cause the problem you're having or not. But, that is the first thing that should be done when moving a database for vB.
So far as I know, vB should not redirect you away from the ACP you're on to the original one. It's never happened to me.
I'm not 100% certain, but I think it might have to do with the cookies for your old site. I would suggest opening a support ticket at the vbulletin.com site and ask how to reset the cookie info with tools.php. And include info on what is happening to you so they can verify the problem. I'm sure they've run across this before.
Are you sure it's not a DNS issue?
nhawk
09-28-2011, 03:49 PM
I can't say for sure that's not his issue, but both sites (original and new) were resolving properly for the site I just moved. vB was running, but was closed on the original site as I configured the new site. Once the new site was configured, vB was removed from the old site.
So, both sites being active shouldn't be a problem.
Fready
09-28-2011, 03:51 PM
I just had a crazy thought.
I will re-do everything i did today tomorrow (as I deleted the data base and files for the new one when it didn't work) and try again.
I'm not 100% sure, but I think i might have added some wrong info in the config.hp today for the new one.
I thought that would have given me a data base error when trying to connect to the new URL myself, instead of redirecting me to the other URL, but it's worth a go.
I'll report back tomorrow.
nhawk
09-28-2011, 04:05 PM
Fready...
If you still have access to the original install of vB, backup the database again. But before you do, do these three things..
1) Turn vBulletin OFF.
2) Disable the Plugin/Hook system
3) Go to ACP->Settings->Options->Cookie and HTTP Header Options. Be sure the Cookie Domain is set to Blank and Use Custom Setting is not checked.
preemz10314
09-28-2011, 04:55 PM
I had this same problem. i opened a ticket and it was corrected.
Try uploading tools.php and reset the cookies / domain. you may also have to edit the config.php bburl setting.
And you may or may not have to go to stylevars> search imagepaths and edit the image paths to point to your new domain.
Opening up a ticket at vbulletin.com if you cant do it and they will help you thru it. just explain it to them. They do this all the time, however when I asked excatly what they did to fix it they wouldnt tell me ;/
Fready
09-29-2011, 02:34 AM
Ok, I got everything to work fine.
I must have made a mistake in the conig.php yesterday.
--------------- Added 1317272741 at 1317272741 ---------------
Thanks to you guys who posted on this Thread, it helped me work out what I'd done wrong..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.