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

XF 1.2 Migrating Xenforo

Discussion in 'Installation, Upgrade, and Import Support' started by Chris Nutter, Aug 5, 2013.

  1. Chris Nutter

    Chris Nutter Member

    So note to self. Moving an existing xenforo install to a new server is a pain in the ass if you don't do it right from the jump. Old Plugins, Customizations and what not do not migrate well and if you miss some files you will not be able to uninstall them, upgrade them or otherwise change things with out massive errors on the new setup.

    Lesson learned REMOVING everything and trying again.

    Sorry this is a vent nothing more.

    I moved the database over not problem. Where I messed up was I opted to do a fresh install on xenforo and all the plugs. Instead of just moving all the old files to the new server and letting it access the moved over database. This worked fine for the main xenforo software and it was fully working. Then I ran into a problem. The addons/plugins I had installed on the old site. They still showed installed in the admin area. I opted to try and just update/grade them hoping to fix the issue. That didn't work. I tried to uninstall them and reinstall them. This only caused massive errors and have messed the site up. Lesson learned. I shouldn't try and cut corners.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The FAQ explains how to move an existing installation.

    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.

  3. wickedstangs

    wickedstangs Well-Known Member

    having that issue now.. Mad too... Have to rethink this...
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. wickedstangs

    wickedstangs Well-Known Member

    I use to do it like that but, I guess they no longer give ftp to root and now there is a Power Panel to do all of that.. Also, Now it is recommended to do transfers using WHM. Atleast that what my host is telling me.

    Finally all my sites are back up...
  6. Chris Nutter

    Chris Nutter Member

    I'm good folks. Just tried to cut corners and had to start again. ;)
  7. Tracy Perry

    Tracy Perry Well-Known Member

    If you have shell access then it's a simple matter of
    cd /path/to/your/forum
    zip -r myforum.zip ./
    and then copy the ZIP file over to your new server and place in the root path for your new forum and issue a
    unzip myforum.zip
    and all the same files should now be there.
    You would also need to make sure that you did a current dump of your DB and copied it over also.
    AndyB likes this.
  8. Brogan

    Brogan XenForo Moderator Staff Member

    I use the following for backing up the DB:
    mysqldump -ucta -p --single-transaction --skip-lock-tables database_name > /path/to/backup/database_name_$(date +%d.%m.%y).sql

    Then this for zipping it:
    tar -czf database_name_$(date +%d.%m.%y).tar.gz /path/to/backup/database_name_$(date +%d.%m.%y).sql

    And this for the server files:
    tar -czf files_$(date +%d.%m.%y).tar.gz /path/to/forum/installation
    Andrej likes this.

Share This Page