2012-08-05 72 views
0

我最近使用FTP下载了功能完整的drupal(6)站点。虽然我安装了Drupal实例,但我得到了站点/所有文件夹中的模块和主题,但无法获得实际站点配置(这些模块的配置和设置)Drupal网站下载:无法按原样安装网站

在此任何帮助将不胜感激。

+0

你已经迁移了数据库也正确吗?对?!? :) – roberthernandez 2012-08-05 18:59:33

+0

是的,我也迁移了数据库(应该在安装drupal之后或之前完成)我在安装drupal之后做了这个工作,因为如果我在安装之前做了它,它会要求我清空数据库或查看现有的站点没有安装)。 – svabhishek 2012-08-05 22:15:46

回答

1

假设这是一个后续的:Drupal Site install on localhost after downloading source using FTP

如果你得到了Drupal的访问你刚刚迁移到localhost站点时安装屏幕,很可能是因为你想在本地访问网站使用与远程站点不同的URI,并且此URL不属于Drupal在查找settings.php文件时搜索的目录(请参阅站点/默认文件夹的default.settings.php文件中有关第20行开头的注释)。

你有两个选择:

选项1:创建一个指向请求到本地URI托管直播网站目录上您的本地主机的符号链接。这将是这个样子:

ln -s /path/to/webroot/sites/default/ /path/to/webroot/sites/mydevsite.dev 

选项2:创建URI的映射到托管您的settings.php文件的正确文件夹中的网站/ sites.php文件。例如,你如果你离开你的settings.php文件中添加这网站/ sites.php在网站/默认文件夹:

$sites['mysite.dev'] = 'default'; 
$sites['www.mysite.dev'] = 'default'; 
$sites['mysite.com'] = 'default'; 
$sites['www.mysite.com'] = 'default'; 

简单地说,这转化为:“服务的网站mysite.dev, www.mysite.dev,mysite.com和www.mysite.com从站点/默认的文件夹中找到。“

我通常使用第二个选项。它更可持续,独立于操作系统,可以致力于源代码控制。


基于更新前5个评论:

你需要编辑.htaccess文件在你的Drupal安装。寻找这个部分:

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a 
    # VirtualDocumentRoot and the rewrite rules are not working properly. 
    # For example if your site is at http://example.com/drupal uncomment and 
    # modify the following line: 
    # RewriteBase /drupal 
    # 
    # If your site is running in a VirtualDocumentRoot at http://example.com/, 
    # uncomment the following line: 
    # RewriteBase/

而且照它说的那样,取消注释并将其设置到您的子目录中。

+0

谢谢@roberthernandez的答复,但仍然在小修复:) 我的本地文件夹的名称是** abhi **这是我将工作的网站(localhost/abhi是我的网址)。 我用建议的第二个选项创建了sites/sites.php。 '<?php $ sites ['rtd'] ='default'; $ sites ['www.rtd.dk'] ='default'; $ sites ['rtd'] ='default'; $ sites ['www.rtd'] ='default'; ?>' 但问题是,我只能加载第一页,而不是所有其他模块相关的网站。 例如,localhost/abhi/admin或localhost/abhi/build/modules,返回死亡白屏 – svabhishek 2012-08-05 19:07:46

+0

好。那么作品呢? – roberthernandez 2012-08-05 19:09:26

+0

不,不是现在。我仍然在试图弄清楚我错在哪里。 – svabhishek 2012-08-05 19:11:32

0

是的步骤是正确的。它是不是未来的设计或缺少视图的功能?如果它唯一没有到来的CSS,那么问题可能是你的主题没有得到应用。检查主题文件夹是否正确存在,并禁用/启用主题。

+0

意见和主题的功能。他们都失踪了。模块和主题文件夹存在,权限也完全没问题。 – svabhishek 2012-08-10 23:18:58