克隆 Drupal 站点
Cloning a Drupal site
我需要建立一个测试站点(作为 "real site" 的副本)。
我做了以下事情:
- 复制整个"real site"到
/var/www/html/drupal-test
- 将数据库克隆为名为
drupal-db-test
的新数据库
- 对
/var/ww/html/drupal/sites/default/settings.php
进行了更改以指定测试数据库的位置
然后我打开浏览器,当我请求 localhost/drupal-test
时,我收到以下错误消息:
The requested URL `/drupal-test/ca/user/password` was not found on this server
我试过的是请求localhost/drupal-test/?q=user/login
。我在网上找到了这个解决方案,并且有效,我现在可以看到登录页面。但是,问题仍然存在,因为当我输入用户名和密码时,出现另一个错误:
The requested URL `/drupal-test/ca/whatever` was not found on this server
任何建议将不胜感激,谢谢!
我找到了解决方案:
如果您不想修改 apache 配置文件(就像我的情况,所以我的服务器中有多个网页),您可以执行以下操作:
在您的 Drupal 界面中以管理员身份登录,然后单击 "configuration" ->(搜索和元数据)Clean Urls -> Disable clean URL's
谢谢你 :D
我需要建立一个测试站点(作为 "real site" 的副本)。 我做了以下事情:
- 复制整个"real site"到
/var/www/html/drupal-test
- 将数据库克隆为名为
drupal-db-test
的新数据库
- 对
/var/ww/html/drupal/sites/default/settings.php
进行了更改以指定测试数据库的位置
然后我打开浏览器,当我请求 localhost/drupal-test
时,我收到以下错误消息:
The requested URL `/drupal-test/ca/user/password` was not found on this server
我试过的是请求localhost/drupal-test/?q=user/login
。我在网上找到了这个解决方案,并且有效,我现在可以看到登录页面。但是,问题仍然存在,因为当我输入用户名和密码时,出现另一个错误:
The requested URL `/drupal-test/ca/whatever` was not found on this server
任何建议将不胜感激,谢谢!
我找到了解决方案:
如果您不想修改 apache 配置文件(就像我的情况,所以我的服务器中有多个网页),您可以执行以下操作:
在您的 Drupal 界面中以管理员身份登录,然后单击 "configuration" ->(搜索和元数据)Clean Urls -> Disable clean URL's
谢谢你 :D