View Full Version : Moving vBulletin to a new Server / Domain
InPhaseVB
12-07-2015, 09:07 AM
Hello, I have been trying to move a v5.1.9 installation from an internal server at my office to a public web server. I moved up the file structure and the restored the database then changed the config.php file in core/includes to point to the new database but when I go to the new site it just redirects all traffic back to the old. I have tried going to the administrator login /admincp/index.php but it just gives a 404 error so I cant change the bburl setting which some posts say is the solution. I have looked in the database and found in the settings table bburl, frontendurl & frontendurl_login
which have the internal server's address but even changing these does not fix the issue. Is their something I am missing? Also as an aside I have noticed that one of the files it is trying to connect to css.php in the root web directory does not exist but works on my internal install is this some sort of routing? Any assistance would be greatly appreciated:)
Have you tried changing the URL's and such on the old server, then move the database over to the new server? I don't have experience with vBulletin 5, but it's possible those settings are cached.
InPhaseVB
12-07-2015, 09:43 AM
Any way of clearing the cache on the new server?
In the vBulletin 5 download from vBulletin.com, there's a folder called do_not_upload which contains a file called "tools.php". Upload that file to the admincp, then run "Update the options cache from the setting table".
InPhaseVB
12-07-2015, 11:15 AM
I moved the file to core/admincp then when I go to access it at the browser it fails with:
Warning: require_once(./install/includes/class_upgrade.php): failed to open stream: No such file or directory in /home/ourperfo/public_html/core/admincp/tools.php on line 51
Fatal error: require_once(): Failed opening required './install/includes/class_upgrade.php' (include_path='.:/usr/local/php56/pear') in /home/ourperfo/public_html/core/admincp/tools.php on line 51
I cant see the file either that it is trying to find...
Any ideas? I get the impression the file structure is different...
The install folder has to be present as well, you probably deleted it since you're just trying to move over the installation. Simply upload the install folder where it belongs and then access the tools script again.
InPhaseVB
12-07-2015, 01:21 PM
Thanks, I was able to clear the cache, but I still seem to have issues.
http://185.123.97.137/~ourperfo is my temporary url until I move over the domain.
Here is what i have set the values in settings to and flushed the options cache.
bburl - http://185.123.97.137/~ourperfo/core
frontendurl - http://185.123.97.137/~ourperfo
frontendurl_login - http://185.123.97.137/~ourperfo
but there is no style being shown and the links go nowhere.
If I change:
frontendurl - http://185.123.97.137/~ourperfo/core I get styling but links are still broken
But my local install which works was:
bburl - http://crab/vb/core
frontendurl - http://crab/vb
frontendurl_login - http://crab/vb
So I think it must follow that structure.
Thanks.
RichieBoy67
12-07-2015, 02:39 PM
Yes, you must follow the same directory structure.
The easiest method is to copy all your files exactly as they are. Then change your dns to point to the new server. I would not bother with setting everything up to use the ip address.
What is your control panel? Plesk and Cpanel have pretty easy options for migration.
InPhaseVB
12-07-2015, 03:21 PM
I am using cpanel.
The reason why I am using the ip/directory is the domain name that it will eventually use is in use. I was hoping to get the site up and running and then switch over to that domain.
Thanks.
I just don't understand why this would not work with the settings as detailed above. I also tried dropping all tables and doing a reinstall with again the settings above but still the same issue. I have moved from a Windows box to a LAMP box would there be something there? I am pretty sure all the files are exactly the same as my local install apart from the db connections.
This is the package uploded vb5_connect_5-1-9_Patch_Level_1_LD326FC698
Maybe permissions?
DemOnstar
12-07-2015, 03:28 PM
Did you go to admin CP/ settings
/site name/url/ contact details?
InPhaseVB
12-07-2015, 03:44 PM
I can't even get to admin it just gives me a 404.
Here is where I go:
http://185.123.97.137/~ourperfo/admincp/index.php
DemOnstar
12-07-2015, 03:59 PM
Okay, a bit confusing this thread now.
Did you do a completely fresh install on the new server and succeed?
--------------- Added 1449513155 at 1449513155 ---------------
If not, create a new database, do a new install with the new 5.1.10. Go all the way to the end where it will say.....
Security Alert!
The /core/install directory still exists.
This poses a security risk, so please delete that directory immediately. You cannot access the control panel until you do so.
Then don't click anything, just go to your root/core and remove the entire install folder then go back to the fresh install screen and click admin CP. Why not?
Just be sure you have a working install on your public server to begin with. Then worry about swapping the database or copying your existing database but changing the site name/ url/ contact details beforehand.
InPhaseVB
12-08-2015, 09:03 AM
After much reading I set up the following RewriteBase in your website's .htaccess file:
Code:
RewriteBase /~ourperfo/
And it works, thanks for everyone's help.
DemOnstar
12-08-2015, 11:14 AM
Very good!
I wondered what ~ourperfo/ was.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.