Drupal 到 Drupal 迁移

发布于 2024-08-04 17:09:32 字数 269 浏览 2 评论 0原文

我正在尝试迁移主机,但在从一个 Drupal 实例迁移到另一个实例时遇到问题。我有一个多站点安装。我正在尝试维护文件/代码以及数据库。我已将 Drupal 实例中的文件从旧服务器传输到新服务器。我已经通过 phpmyadmin 导出了数据库,并使用 cli 将它们导入回来。由于某种原因,我的网站主页可以工作,但内部页面却不能。当我尝试导航到某个页面时,我收到请求的 URL 未找到。我已经在新服务器上安装并运行了 drupal 6(相同版本)的新实例,它似乎工作正常。我认为这是我在移植过程中做错的事情?非常感谢任何帮助!

I am attempting to migrate hosts and am having issues migrating from one Drupal instance to another. I have a multi-site install. I am attempting to maintain the files/code as well as databases. I have transferred the files from the instance of Drupal from my old server to the new server. I have exported the databases via phpmyadmin and imported them back in with cli. For some reason the homepages for my sites work but the internal pages do not. When i try to navigate to a page I get The requested URL was not found. I have installed and ran a new instance of drupal 6 (same version) on the new server and it seems to work fine. I assume it is something I am doing wrong with the porting process? Any help greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

记忆里有你的影子 2024-08-11 17:09:32

您是否也传输了 .htaccess 文件?

这些是“隐藏的”(它们的名称以“.”开头),并且某些 FTP 传输软件默认不显示...

(几天前我已经看到了这个问题,并得到了来自旧服务器的 .htaccess 并将其放在新服务器上挽救了这一天 ^^ 所以也许您也遇到了这个问题...)

Did you transfer the .htaccess file(s) too ?

Those are "hidden" (their name is starting with a '.'), and not shown by default by some FTP transfer software...

(I've seen exactly this problem a couple of days ago, and getting the .htaccess from the old server and putting it on the new one saved the day ^^ so maybe you're having this problem too...)

2024-08-11 17:09:32

您可以通过仅迁移站点/目录来避免这种情况。在新服务器上提取最新版本,然后从旧站点复制模块、主题和设置。当然,数据库也需要移动。

这假设您的站点是最新的并且您没有修改 drupal 核心。您也可能有一个自定义安装配置文件可供复制。

You could have avoided that by only migrating the sites/ directory. Extract the latest version on your new server and copy the modules, themes, and settings from your old site. Of course the database will need to move also.

This assumes your site is up to date and you haven't modified the drupal core. You may have a custom install profile to copy over too.

青衫负雪 2024-08-11 17:09:32

从一个 Drupal 实例迁移到另一个 Drupal 实例之前需要牢记一些重要事项

1. Optimize the tables before exporting the database.
 a) By clearing all the temporary tables
 b) By removing website cache.

For more details go through the following link:
http://goldapplesoftware.ca/blog/2011-05-reducing-drupals-disk-temporary-table-usage

2. Export database with command line so no data is lost.

There are some important things to keep in mind before migrating from one Drupal instance to another

1. Optimize the tables before exporting the database.
 a) By clearing all the temporary tables
 b) By removing website cache.

For more details go through the following link:
http://goldapplesoftware.ca/blog/2011-05-reducing-drupals-disk-temporary-table-usage

2. Export database with command line so no data is lost.
两相知 2024-08-11 17:09:32

检查您的 httpd/apache conf 文件...请务必添加:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Check your httpd/apache conf file... be sure to add:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文