Full message:

Domain access failed to load during phase: -1. Please check your settings.php file and site configuration.

I'm a n00b at this, and currently attempting to set up one primary site (in a /drupal subdir) and three shared sites (subdomains one.mysite.com two.mysite.com three.mysite.com); as I was loading the modules to the primary site's /modules directory, for them to be accessible and shared, I enabled "Domain Access" and began getting the above message. Verified my settings.php and site config several times.

Finally got a gut feeling to turn off the Domain Access module, and voila~! The error went away.

That begs the question "what am I missing" of course...or do I even need Domain Access?

(Hadn't enabled Organic Groups yet, but have the module uploaded. Could that be a factor?)

Comments

agentrickard’s picture

Category: bug » support
Status: Active » Closed (fixed)

Please read the Domain Access installation guide. In particular, parts 1-3 of INSTALL_QUICKSTART.txt.

moskit’s picture

3. Add the following four lines of code to your settings.php file:

include './sites/all/modules/domain/settings.inc';

S.Siva’s picture

wat four lines ???
can u explain me in detail pls ??

agentrickard’s picture

READ THE DOCUMENTATION.

opp67’s picture

That guy is an epididymis, here ya go:

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

IMPORTANT: You must add these lines to settings.php after the
$db_url. Normally, you should add these lines to the end of the
settings.php file.

agentrickard’s picture

Really? You enjoying all the free software and support?

Don't be an ass to a maintainer.

rodicaro’s picture

I tried doing what you said, but I'm told settings.php is locked. What do I do?

iasminb’s picture

rodicaro,
The problem has to do with the permissions of the file. Make the file writable and it will work.

literar1’s picture

I'm sure he didn't know you are the maintainer. People should really learn how to read module documentation before posting issues. That why maintainers go through all the trouble of writing them. And it so happens that Domain access has a good detailed documentation.
THANKS For THE MODULE AND KEEP UP THE GOOD WORK AGENTRICKARD.