1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Added a new Domain name

Discussion in 'Installation, Upgrade, and Import Support' started by suppy, Apr 19, 2013.

  1. suppy

    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..
     
  2. Brogan

    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
     
  3. suppy

    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.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Have you copied across all files, imported the database, and updated config.php to match the new DB details?
     
  5. suppy

    suppy Member

    I just checked the source..

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

    Brogan XenForo Moderator Staff Member

    The user name or password are incorrect for the database.
     
  7. suppy

    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..
     
  8. 14DH01

    14DH01 Active Member

    the "DNS" the new domain is pointing to your hosting?
    there is a delay 24/48 hours
     
  9. suppy

    suppy Member

    My new domain its pointing to my hosting. I've been able to config WP and homepage is up, just can't get the forum going.
     
  10. 14DH01

    14DH01 Active Member

    You changed "url" option in "xf" ? with your new domain ?
    see also. htaccess if it is correct.
    config.php(xf):​
    change your "name_database.com", for "localhost"​
     
  11. suppy

    suppy Member

    Not all files where copied across.
    All fixed now ;)
     
  12. suppy

    suppy Member

    Still got a little problem..

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

    Any thoughts?
     
  13. suppy

    suppy Member

    Guys, Any thoughts why I can't login?
    Is there a solution to fixing this?
     
  14. Brogan

    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?
     
  15. suppy

    suppy Member

    I've sent you a pm sir.
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    I am receiving this error:
    Check your config.php file for something like this:
    Code:
    $config['cookie'] = array(
        'prefix' => 'xf_',
        'path' => '/',
        'domain' => ''
    );
    Update the domain.
     
    14DH01 likes this.
  17. suppy

    suppy Member

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

    Thanks very much.. ;)
     

Share This Page