Added a new Domain name

suppy

Member
Hi, I've just purchased a new domain name for our WP site. The new domain name has been changed completely on our hosting account, so that it becomes the new domain.

How do I config xenforo to use the new domain name?

Any help on this matter would be great..
 

Brogan

XenForo moderator
Staff member
How can I move my installation to a different domain or host?
Backup the existing database and server files. Copy them to the new domain/server and update the library/config.php file with the new database details as required. It may be necessary to set permissions for the data and internal_data directories to world writeable (CHMOD 0777). Lastly, update the Board URL in the ACP -> Options -> Basic Board Information, if it has changed.
Note that if you are moving to a different type of web server and have Friendly URLs enabled, you will need to make the appropriate changes. Refer to the Friendly URLs section of the XenForo Manual for more details.


Can I change the domain or URL where the software is installed?
Yes, as long as you remove the original installation before installing it elsewhere. Ensure you update your account details in the Customers area.


http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180455
 

suppy

Member
Did as you said..

I now get this error when trying to view forum.

An unexpected database error occurred. Please try again later.
 

Brogan

XenForo moderator
Staff member
Have you copied across all files, imported the database, and updated config.php to match the new DB details?
 

suppy

Member
I just checked the source..

Access denied for user to database..
I updated the config.php to match the new DB details.
 

suppy

Member
Yeap I would believe so too but I've checked over and over again to make sure the database details are correct.
I copied them from /public_html/wp-config.php

Not sure what's going on..
 

suppy

Member
Still got a little problem..

members reporting they can't login. I also cant log in or to admin..

Any thoughts?
 

Brogan

XenForo moderator
Staff member
What error are you receiving?

Do you have a user name and password I can use to test logging in?
 

Brogan

XenForo moderator
Staff member
I am receiving this error:
Cookies are required to log in to this site. You will not be able to login until they are accepted.
Check your config.php file for something like this:
Code:
$config['cookie'] = array(
    'prefix' => 'xf_',
    'path' => '/',
    'domain' => ''
);
Update the domain.
 

suppy

Member
yeap! that's fixed it. I had done this earlier but uploaded a backup. and forgot that little line.

Thanks very much.. ;)
 
Top