Log in

View Full Version : Database coppied, now can't use forum


shiznatix
05-05-2009, 02:42 PM
Ok so I am setting up a development server. I have the live version of vbulletin files and database dump that I imported to the new development server so it was an exact copy of what was on the live site.

The domain for the development server is obviously different so I went to the "setting" table in the database and changed all instances of the old domain to the new domain so the cookie path and whatnot are correct now in the database. The problem though is that I still can not login to the forum on the development server, it has for some reason the live server domain in the form action for the login box for the user and in the admincp, whenever I enter a correct username and password, it says "thanks for logging in..." then it just redirects back to the login screen.

What settings where do I have to change to get this to work? There has to be a table in the database somewhere that has the live server domain in there that I need to change but I just can not find it. Anyone know where to find this?

edit: I don't want to do a fresh install on the development server because the live server has a lot of mods installed + file changes to get my hacks to work (custom BB code) and whatnot.

Lynne
05-05-2009, 03:13 PM
Did you change teh config.php file to point to the new database?

shiznatix
05-05-2009, 03:26 PM
Yes that is not the problem. I can view the page just peachy but if I view the source and go to the login box section then I can clearly see the live version domain in the action="" section instead of the new development domain. That is the problem because I can't login to the development domain in any way.

Lynne
05-05-2009, 03:36 PM
Hmmm, it's been ages since I had to set up a development site.

I would turn off datastore caching in the config.php file - did you copy the datastore_cache from the live site? Maybe it's using that.

Blackheart_72
05-05-2009, 03:46 PM
Silly question but did you change the domain url in the admincp for the development site.

shiznatix
05-05-2009, 03:46 PM
I don't have the datastore enabled in the config.php file and don't think I have ever used it. Is there anything else it could be?

Lynne
05-05-2009, 03:59 PM
So, you have the correct info for the development database in the config.php file, but you can't login to the admin cp (or site). I think I would upload the tools.php file to the admin cp folder and see if you can set the correct information through there (reset the options cache?)

shiznatix
05-06-2009, 07:36 AM
The tools.php thing worked. Thanks for the help!