---
title: "Drupal : Domain Access Failed to Load During Phase: Bootstrap Include"
author: "xinlanzero"
date: "2011-10-27T17:07:52Z"
tags: []
categories: ["Web前端"]
slug: "drupal-domain-access-failed-to-load-during-phase-bootstrap-include"
draft: false
lastmod: "2011-10-27T17:36:54Z"
id: 1218803
url: "https://xinlanzero.iteye.com/blog/1218803"
---

在使用Drupal的模块Domain Access是遇到错误信息："Domain access failed to load during phase: bootstrap include. Please check your settings.php file and site configuration."。

 

    经查资料才发现是由于需要在文件settings.php中增加下列语句：

 

```
/**
 * Add the domain module setup routine.
 */
include DRUPAL_ROOT . '/sites/all/modules/domain/settings.inc';
```

 

    而且以上语句必须 $databases 的定义之后。

 

    其实这个信息在模块Domain Access的安装帮助文件INSTALL\_QUICKSTART.txt 中有说明的，只怪自己当初没有仔细阅读。