2010-05-07, 03:51 AM
Okay, I ran this today, and hit virtually most of the snags people seemed to have hit on here. So, and yes, odd that this is my first post, I would like to make the process a bit clearer for some people who may have ran into some issues here.
Here's what needs to be edited in inc/config.php:
And, because the original poster didn't state specifics on what should be changed in the inc/settings.php file, here are the things to look for to change in the code:
Now, people have mentioned getting an Error 1146 upon trying to access the forums on their new domain. I encountered this too. What it most likely means is that the backup of the database wasn't properly loaded in phpMyAdmin. This happened to me when phpMyAdmin failed to completely load the backup I had imported. I merely had to delete the incomplete log that had been created and upload the backup again.
Then, I encountered a new error. I went to the new location for my forums, and now it was allowing me in! Success! However, the site was entirely without CSS styles! It was just black text aligned on a white background, no images either. This occurred because I had made a typo in my settings.php file when writing in the URL. Apparently, if you do this, the forum loads, but without anything the pages are <meta> linked to. So, yeah, don't ever have a typo in the URL.
Then I had the issue with the AdminCP locking me out every time I clicked a link, and found that I had forgotten to change the cookie domain in my settings.php file.
So, for future reference, if people have these issues again, there are the causes and probable solutions.
Hope this helps someone. Oh, and if I'm totally off to be posting this here, my mistake .
Here's what needs to be edited in inc/config.php:
$config['database']['database'] = 'new_datebase_name';
$config['database']['username'] = 'new_datebase_username';
$config['database']['password'] = 'new_password';
$config['database']['hostname'] may need to be changed as well
And, because the original poster didn't state specifics on what should be changed in the inc/settings.php file, here are the things to look for to change in the code:
--- Critical ---
$settings['bburl'] = "http://newdomain.com/forum";
$settings['cookiedomain'] = ".newdomain.com";
--- Can change now or in AdminCP later ---
$settings['bbname'] = "New Forum Name (if it changed)";
$settings['contactlink'] = "mailto:[email protected]"; (if contact info changed)
$settings['homeurl'] = "newdomain.com/forum";
Those are the specifics that I found needed to be changed.Now, people have mentioned getting an Error 1146 upon trying to access the forums on their new domain. I encountered this too. What it most likely means is that the backup of the database wasn't properly loaded in phpMyAdmin. This happened to me when phpMyAdmin failed to completely load the backup I had imported. I merely had to delete the incomplete log that had been created and upload the backup again.
Then, I encountered a new error. I went to the new location for my forums, and now it was allowing me in! Success! However, the site was entirely without CSS styles! It was just black text aligned on a white background, no images either. This occurred because I had made a typo in my settings.php file when writing in the URL. Apparently, if you do this, the forum loads, but without anything the pages are <meta> linked to. So, yeah, don't ever have a typo in the URL.
Then I had the issue with the AdminCP locking me out every time I clicked a link, and found that I had forgotten to change the cookie domain in my settings.php file.
So, for future reference, if people have these issues again, there are the causes and probable solutions.
Hope this helps someone. Oh, and if I'm totally off to be posting this here, my mistake .