【发布时间】:2014-05-12 15:01:16
【问题描述】:
我正在尝试将现有的 Drupal 6 站点从 IIS 服务器迁移到使用 Linux 和 Apache 的 AWS 实例和数据库。
我一直按照这篇文章的说明进行操作:
http://www.imamuseum.org/cc-mcn09.pdf
我已跳过文章的“配置 MySQL”部分,因为我目前从 AWS 使用的数据库是 MySQL DB。
到目前为止,我... 将源代码转移到 /ebsvol/apache/www 目录。
更改了“数据库 URL 格式:”下的 /ebsvol/apache/www/sites/default/settings.php 文件以匹配新的 Ec2 实例数据库信息。
更改了 /etc/httpd/conf/httpd.conf 文件以包含以下虚拟主机:
<VirtualHost 00.00.00.003:80>
#ServerAdmin root
DocumentRoot /ebsvol/apache/www
#ServerName my.test.site.edu
#ServerAlias www.my.test.site.edu
ErrorLog /ebsvol/apache/log/error.log
TransferLog /ebsvol/apache/log/access.log
<Directory /ebsvol/apache/www>
AllowOverride All
</Directory>
</VirtualHost>
现在,当我打开 Ec2 实例公共 DNS 时,页面显示此错误消息,原来是我的 Drupal 源代码中的 index.php 文件:
<?php
// $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$return = menu_execute_active_handler();
// Menu status constants are integers; page content is a string.
if (is_int($return)) {
switch ($return) {
case MENU_NOT_FOUND:
drupal_not_found();
break;
case MENU_ACCESS_DENIED:
drupal_access_denied();
break;
case MENU_SITE_OFFLINE:
drupal_site_offline();
break;
}
}
elseif (isset($return)) {
// Print any value (including an empty string) except NULL or undefined:
print theme('page', $return);
}
drupal_page_footer();
有谁知道为什么 Drupal 站点只读取 index.php 文件而不是整个源代码?
如果您需要更多信息,请告诉我。
谢谢,
【问题讨论】:
标签: php apache drupal amazon-ec2 drupal-6