# Xenforo 2.3 迁移

**URL:** <https://meta.discourse.org/t/xenforo-2-3-migration/327812>\
**Category:** Migration\
**Tags:** xenforo\
**Created:** [2024年九月23日 19:10 UTC](https://meta.discourse.org/t/xenforo-2-3-migration/327812 "2024-09-23T19:10:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2024年九月23日 20:04 UTC](https://meta.discourse.org/t/xenforo-2-3-migration/327812/3 "2024-09-23T20:04:14Z")

</div>

脚本[在此处](https://github.com/discourse/discourse/blob/main/script/import_scripts/xenforo.rb)。它的工作方式与其他脚本类似。

> [@Chadi](#):
>
> 我实际上没有看到任何官方迁移文档。

以下是一些说明。

> [@Migrate a XenForo forum to Discourse](https://meta.discourse.org/t/migrate-a-xenforo-forum-to-discourse/45232):
>
> Hey guys so after trying for a week or so I decided to import the database on docker app which I hoped it will succeed without any issues. TBH I got some issues at first but it turned to be all easy to solve. Now I would recommend doing this only once before you deploy your production site, after importing everything take a Discourse backup, wipe everything out and install new Discourse instance then restore the imported db. Ok let’s begin: First lets backup your old database from your old …

> [@Chadi](#):
>
> 大多数帖子都有几年历史了

那是因为没有太多变化。我猜没有消息就是好消息。

> [@Chadi](#):
>
> 我正在使用 AlmaLinux 8x（cPanel 服务器）和 LiteSpeed。

很难让它与 cPanel 一起工作。我建议使用本地开发环境或可以运行 docker 且没有其他东西运行的虚拟机。有可能让 Discourse 在您当前的服务器上运行，但这与运行导入是分开的问题。

> [@Chadi](#):
>
> 像私人消息、密码、被禁止的电子邮件会怎么样？

> <https://github.com/discourse/discourse/blob/main/script/import_scripts/xenforo.rb#L41-L47>

看起来它会跳过被禁止的用户，但不会导入被禁止的电子邮件，所以我想如果那些被禁止的人找到了你的新论坛，你需要再次禁止他们或修改脚本来执行此操作；我不知道有任何脚本可以做到这一点，所以你需要查看 Discourse 源代码以了解如何在 Discourse 端禁止他们，并找到你数据库中那些电子邮件地址的位置。

看起来密码哈希迁移插件不支持 Zenforo。有可能它仍然有效（如果它碰巧使用了与其他论坛相同的哈希）。

> <https://github.com/communiteq/discourse-migratepassword/blob/master/plugin.rb#L10-L20>

---

_[View the full topic](https://meta.discourse.org/t/xenforo-2-3-migration/327812)._
