Moving to Dedicated Server
Does anyone have experience moving to a dedicated server? I use hostgator and they are great and provide all the services to move. To test I am updating my host file to go to the server. I tried using their builtin test, but it didn't work.
This works for almost everything BUT posting in the activity stream and/or forums. Does anyone know if this is expected behavior? Or does anyone know of any issues moving to a different server which is only changing the name servers and IP address. I would assume nothing in BuddyPress is hardcoded by IP.
Has anyone done this, had success, or have any advice?
Thanks, David
Everyday at WPMU DEV we help hundreds of WP Users. Become a member today to:
- Download 250+ Premium Plugins and Themes
- Get unlimited support from WordPress Experts
- Get help with your WordPress or BuddyPress projects
Help & Support from WPMU DEV members and staff
Hey David.
No, no IPs should be hard coded at all. Its all done through domain.
To test I am updating my host file to go to the server. I tried using their builtin test, but it didn't work.
I guess I'm not following here, what are you changing it from and to? And which host files are you referring to?
Here is how a move would go. Move DB and files to server. Ensure DB details are correct for new server. change the name servers for the new server as now you will most likely have your own NS. Domain points in and your all done.
This works for almost everything BUT posting in the activity stream and/or forums. Does anyone know if this is expected behavior?
What exactly is happening here? Any errors in your error_log?
Are the name servers and DNS fully resolved?
Has anyone done this, had success, or have any advice?
Many times, never really had an issue.
cPanel also has a backup and import (whm) did Hostgator do that for you?
Please let me know. :-)
Thanks for the quick response! I haven't checked the error logs, but I will for sure. So using my host file I just manually entered in the new IP address, so my computer doesn't go to the internet to find that dns record. But I would not be surprised to learn that it still breaks on the server side since it's DNS still points to the old IP address.
Given what you are saying I am confident it will all work. I just found out I can't change my name servers as it is in process of changing registrars, so I have to postpone anyway. But this was a bit of a concern seeing it didn't work. So I figured I would reach out since I now have another 5-7 days before the real move anyway.
The exact problem is interesting. It doesn't find ANY forum topics at all and when I try to post it gives the error - Sorry, there were no forum topics found. It simply can't enumerate them.
I will check the logs though. David
Get personal, comprehensive and timely support and assistance
from WordPress Experts
Ah I see what you mean now with your host file.
Yeah let us know once the move is done and/or what errors you find in those logs as they will most certainly help in debugging any issues.
Take care.
Bummer, probably won't get a response before I have to roll back again, but having same issue even though moved to new server was done like mentioned above. Here is the error. Basically it is like all forum content is gone. And I can't post new topics. Almost like that table (assuming it is a table) doesn't exist to write to or read from. I think this is one of the errors.
27-Jan-2012 05:01:32] WordPress database error Duplicate key name 'user_nicename' for query ALTER TABLE wp_users ADD UNIQUE KEY user_nicename (user_nicename) made by require, wp, WP->main, do_action_ref_array, call_user_func_array, bp_screens, do_action, call_user_func_array, groups_screen_group_forum, bp_forums_get_topic_id_from_slug, do_action, call_user_func_array, bp_forums_load_bbpress, bp_bb_dbDelta
I guess I am always surprised after reading so many things on moving buddy press sites how one simple update could not be in any of the documents I read. Oh well...bb-config file needed updated. Yes, should have been a no brainer, but what was really throwing me was how much was actually working with the wrong username and db in that.



