Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2013, 05:24 AM
Exeter Exeter is offline
 
Join Date: Mar 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Server move to localhost - can't log in

I am trying to move my entire forum instance to a test server (localhost).

I completed the move per instructions here:
http://www.vbulletin.com/docs/html/moving_servers

Login in attempts on localhost result in redirection to production (the source), which returns
"Invalid Redirect URL (http://localhost/)".

Next I replaced every instance of the URL I could find in the table settings with localhost.
That did not work either. Resetting the cookiedomain with tools.php did not do it either.

What am I missing?
Is there a proper server move doc somewhere; one better than the fake-out on the official server?

Thanks

--------------- Added [DATE]1366356494[/DATE] at [TIME]1366356494[/TIME] ---------------

I narrowed the issue down to some setting in the DB image.

Doing a find/replace of "www.example.com" => "localhost" in the dump file before importing makes the install work.

Unfortunately there are thousands of those references. Don't know which one made it work.
Replacing all may have some unintended consequences, such as all forum links in posts changing.
Reply With Quote
  #2  
Old 04-19-2013, 02:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All you should need to do is on the live site, turn off forum, change AdminCP > Settings > Options > Site Name/URL/etc > Forum URL > set to localhost > do database backup. (Change back to live url and turn live site back on). Now, use that database backup that has the fixed URL. You may need to upload tools.php and click to reset the cookie domain if you have that set to the domain instead of just left blank.
Reply With Quote
Благодарность от:
Max Taxable
  #3  
Old 04-20-2013, 04:50 AM
Exeter Exeter is offline
 
Join Date: Mar 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the info. I'll try that next time.
Reply With Quote
  #4  
Old 09-19-2013, 03:57 PM
patracy patracy is offline
 
Join Date: Feb 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
All you should need to do is on the live site, turn off forum, change AdminCP > Settings > Options > Site Name/URL/etc > Forum URL > set to localhost > do database backup. (Change back to live url and turn live site back on). Now, use that database backup that has the fixed URL. You may need to upload tools.php and click to reset the cookie domain if you have that set to the domain instead of just left blank.
Ok, so I tried this on my forum. When I imported it over to the new server. The domain name is trying to ad a /localhost/ into the address bar after the server IP address. So this didn't work for me either. I guess I need to do another export with the normal/working settings of the live site. The upload tools.php and manually update them there?
Reply With Quote
  #5  
Old 09-19-2013, 05:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What did you enter as the Forum URL before you did the backup? And what is the URL you put into your browser to view your localhost site?
Reply With Quote
  #6  
Old 09-19-2013, 05:34 PM
patracy patracy is offline
 
Join Date: Feb 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"localhost" is what I put in there. I don't have a url for the new site. Just the IP of the new server for now.

--------------- Added [DATE]1379615777[/DATE] at [TIME]1379615777[/TIME] ---------------

When I tried logging in basically I got:

http://xxx.xxx.xxx.xxx/localhost/forum.php as the domain link up top.

I'm pulling down a new backup with the normal domain from the live server now and will upload it shortly to the new server. I'm guessing tools.php is the way to go?
Reply With Quote
  #7  
Old 09-19-2013, 05:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to enter the URL you will be using for the test site - if it's an IP, then http://123.456.789.123
Reply With Quote
  #8  
Old 09-19-2013, 05:49 PM
patracy patracy is offline
 
Join Date: Feb 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You need to enter the URL you will be using for the test site - if it's an IP, then http://123.456.789.123
But if I do that to live, won't I break the live site?

--------------- Added [DATE]1379616805[/DATE] at [TIME]1379616805[/TIME] ---------------

And on another note, could I just go into the database and update the datastore table under options value and replace anything that had the live forums domain name with http://123.456.789.123 ?
Reply With Quote
  #9  
Old 09-19-2013, 08:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by patracy View Post
But if I do that to live, won't I break the live site?
No, not if you also did this which I wrote:
***
(Change back to live url and turn live site back on)
***

Quote:
Originally Posted by patracy View Post

And on another note, could I just go into the database and update the datastore table under options value and replace anything that had the live forums domain name with http://123.456.789.123 ?
If you know how to deal with serialized data, then sure you can do that. If you don't know how to deal with serialized data, then you could break your site doing this so make sure you make a copy of the data before changing it.
Reply With Quote
  #10  
Old 09-20-2013, 01:14 AM
patracy patracy is offline
 
Join Date: Feb 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured out another work around. My browsers were using the cached address. So I went to another machine I've never used to access the site and edit the host file on it with entires for both www.mydomainname.com and mydomainname.com. I confirmed it only knew of these by pinging from command line. Then I used the browser and connected to the site as though I was going to the "live" site. I was able to log in no problem. I then changed the settings you mentioned to http://123.456.789.123. Went back out and edited my host file back out. And I'm able to access the site no problem now via IP address!

Now on to getting the ad system, mailer system, and a few other things running. Thanks for the help.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04130 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete