可以在同一台服务器上克隆drupal网站吗? [英] Can I clone drupal site on the same server?

查看:139
本文介绍了可以在同一台服务器上克隆drupal网站吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望将D6网站升级为D7版本。这是一个很大的网站,但我们尝试使用相同的文件和数据库将该站点克隆在同一台服务器上。所以设置是:

We would like to upgrade our D6 site to D7 version. It's a kinda big site but we tried to clone the site on the same server using the same files and database. So the set up is :

生产 -
数据库:db
文件夹:www / drupal

Production - database: db folder: www/drupal

克隆:
数据库:db2
文件夹:www / drupal2

Clone: database:db2 folder: www/drupal2

生产中的任何内容都已被复制。我们只是更新了settings.php,这个想法是使所有升级到克隆站点,然后只需重命名文件夹并再次更新settings.php即可。

anything from production has been copied. We just updated the settings.php, The idea is to make all upgrades to clone site then just switch by just renaming the folder and updating settings.php again.

但是,我们只能显示主页/其他页面为空。

However, we can only have the homepage displayed/ Other pages are blank.

您的任何及时帮助将非常感激。

Any prompt help from you will be very much appreciated.

谢谢!

推荐答案

编辑答案

实际上,克隆网站后最近发生了类似的事情。 .htaccess文件被GIT忽略,所以我可以看到首页,而不是网站的其余部分!

Actually something similar happened to me recently after cloning a site. The .htaccess file was ignored by GIT, so I could see the frontpage but not the rest of the site!

当然,复制.htaccess文件后,一切都

Of course, after copying the .htaccess file, everything went back to normal!

这不是一个真正的Drupal问题...

This is not really a Drupal question actually...

如果你想复制你的网站,只需创建一个网站的副本到子域...

If you want to duplicate your site, just create a copy of the site onto a subdomain...

在你的情况下,它不会帮助很多。你最好看看Migrate模块,该模块应该允许你在另一个域上创建一个新的Drupal 7安装。

In your case it wouldn't help much though. You'd be better off looking at the Migrate module which should allow you to create a fresh Drupal 7 install on another domain.

然后你将导入你的D6内容到你的D7安装,无需担心从原始的D6站点中断任何东西。

You will then import your D6 content into your D7 install, without having to worry about breaking anything from your original D6 site.

毫无疑问,Migrate模块可能不是最简单的学习,但对于一个沉重的站点,它可能成为您最好的解决方案,进行干净的Drupal升级。

Admittedly the Migrate module may not be the easiest to learn but for a heavy site, it may be your best solution out there for a clean Drupal upgrade.

这篇关于可以在同一台服务器上克隆drupal网站吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆