使用FTP下载源后,Drupal Site在本地主机上安装 [英] Drupal Site install on localhost after downloading source using FTP

查看:122
本文介绍了使用FTP下载源后,Drupal Site在本地主机上安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在Drupal网站上工作,几乎知道如何在本地主机上安装Drupal。但是,当我将现有的源代码从主站点下载到我的系统(使用FTP)时,我无法在settings.php文件中安装更改数据库URL的网站。

I've been working on a Drupal site and pretty much know how to install Drupal on the localhost. But when I downloaded the existing source code from the main site to my system ( using FTP ), I am unable to install the site inspite of changing the database url in the settings.php file.

另外,当我运行localhost / site / install时,我可以完成安装,但是当我查看现有站点(localhost / site)时,我无法看到任何内容。

Also, when I run localhost/site/install, I am able to complete the installation but when I view the existing site ( localhost/site ) I am not able to see any content.

我正在使用Ubuntu 12.04和Druapl 6.x。

I am using Ubuntu 12.04 and Druapl 6.x.

任何一种帮助将不胜感激。

Any kind of help would be greatly appreciated.

更新:解决了上述问题。感谢roberthernandez。
但是我下载的网站没有安装,因为它应该是。网站/全部的所有模块和主题都可用,但没有配置,因为它应该是。

Update : Solved the above issue. Thanks to roberthernandez. But the site which I downloaded is not installed as it should be. All the modules and themes in sites/all are available but, nothing is configured as it should be.

更新2:我问了一个新的上述问题的问题。请按照链接

Update 2 : I asked a new question on the above issue. Please follow the link

推荐答案

听起来像死亡的白色屏幕。要找出问题的根源,请将以下三行添加到index.php文件的顶部(例如从第2行开始),以强制将错误回显到屏幕上:

Sounds like the white screen of death. To figure out the root of the problem, add the following three lines to the TOP of your index.php file (e.g. starting on line 2) to force echo of errors to the screen:

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

我要走出一个肢体,并打赌它是三件事之一:

I'm going out on a limb and betting it's one of three things:


  1. 您的资源(内存,执行时间等)太低。

  2. 您缺少mod_rewrite或其他必要的Drupal依赖模块。

  3. 远程服务器上的权限是错误的。如果您没有运行SuExec,文件可能需要由www-data:www-data拥有。如果您是,您的ftp / shell用户将拥有它们。

FYI - 查看远程服务器上安装的模块,在新的php页面上执行一个phpinfo()。您可以将其复制到phpinfo.php并将其上传到您的网络服务器。

FYI - To see what modules are installed on your remote server, execute a phpinfo() on a new php page. You can copy the follwing to phpinfo.php and upload it to your webserver.

<?php
phpinfo();
?>

这篇关于使用FTP下载源后,Drupal Site在本地主机上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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