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

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

问题描述

我一直在一个 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.

更新: 解决了上述问题.感谢罗伯瑟南德斯.但是我下载的网站没有安装它应该的样子.站点/全部中的所有模块和主题都可用,但没有按应有的方式配置.

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 用户所有.

仅供参考 - 要查看远程服务器上安装了哪些模块,请在新的 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 站点安装在本地主机上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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