Hello

I'm fairly new to drupal and testing with domain access, I keep getting this message

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

Can anyone help me?

thanks

Comments

agentrickard’s picture

Please read the installation instructions, modify settings.php and try again.

webstek’s picture

have done

agentrickard’s picture

I cannot help you if you don't communicate.

The error means that the Domain module is not active, so you need to check your module settings. If you edited settings.php without enabling the module, then you installed the module incorrectly.

webstek’s picture

Status: Active » Closed (fixed)

sorry, connection was down, no problem anymore i deleted the files and magically enough now it works

glasswool’s picture

Hi what files didmyou delete? I am having the same problem...

waverate’s picture

In my case, the error resulted from not adding the domain module setup routing (settings.inc) to settings.php.

It was a result of the documentation having so much detail that one of the most important steps (step d. below) was in the weeds.

The steps I used were:

a. brand new Drupal install (my ./sites directory only has all and default),
b. installed (./sites/all/modules/domain) and enabled Domain module, [para 2]
c. added permissions for 'administer domains' and 'set domain access', [para 3.1]
d. edit ./sites/default/settings.php to add to the end of the file [para 5.4.2]:

include './sites/all/modules/domain/settings.inc';
e. go to admin/build/domains to create your subdomains [para 5.4.4].

These instructions were from INSTALL.txt in the domain module.

waverate’s picture

My apologies,

In the domain directory there is INSTALL_QUICKSTART.txt. This document said exactly what I needed to do. Disregard post 6.

agentrickard’s picture

Yea, the weeds are why I wrote the Quickstart install instructions.

netron’s picture

followed the INSTALL_QUICKSTART.txt , but there was extra work to do locally before i could get it to work

my local os is ubuntu - your mileage may vary.

my drupal install is in /sites/drupal6/

requirements: create two subdomains using the same drupal install , with domain access module

step1: edit /etc/hosts

127.0.0.1 localhost
127.0.0.1 subdomain1.localhost
127.0.0.1 subdomain2.localhost

step 2: add this line to /sites/drupal6/sites/default/settings.php AFTER the line starting with
$db_url=

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

step 3: replace /etc/apache2/sites-enabled/000-default with the following
(make sure you keep a backup of the original...)

<VirtualHost *:80>
ServerName subdomain1.localhost
DocumentRoot /sites/
AccessFileName .htaccess

<Directory /sites/drupal6/>
RewriteEngine on
AllowOverride All
</Directory>

ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>


<VirtualHost *:80>
ServerName subdomain2.localhost
DocumentRoot /sites/
AccessFileName .htaccess
<Directory /sites/drupal6/>
RewriteEngine on
AllowOverride All
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot /sites/
AccessFileName .htaccess
<Directory /sites/drupal6/>
RewriteEngine on
AllowOverride All
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>

theres probably a better way of doing the httpd conf above, but it worked for me.

create the domains subdomain1.localhost and subdomain2.localhost in admin/build/domain/

restart apache and you should see 3 domains all running off the same codebase:

http://localhost/drupal6
http://subdomain1.localhost/drupal6
http://subdomain2.localhost/drupal6

HOWEVER: if you are logged into one subdomain, you dont get logged into another automatically. not figured that one out yet.

Tim Jones Toronto’s picture

>HOWEVER: if you are logged into one subdomain, you dont get logged into another automatically.

Check out http://drupal.org/project/singlesignon ?

Cheers,
Tim

netron’s picture

thanks tim.
will try that out.

netron’s picture

installed and activated the single signon module.
doesnt work - still have to login to my subdomains despite being logged into the primary site.

the readme for the single signon module says:

"This module relies on several tables being shared between the master and
slave sites. Here is an example of the "$db_prefix" variable you need to
establish in all of your "settings.php" files in the "sites" directory.
Each site should have a unique name in place of "somesitename_". While
you can rename "shared_" to something else, the prefixes must be the
same for all sites."

but i dont want to do that - i want my subdomain sites to use the same database tables.

netron’s picture

ack. my bad.

you have to configure shared signon to work with the domain access module via a tickbox on admin/settings/singlesignon

netron’s picture

working now.

admin/settings/singlesignon

Integrate with Domain module: ticked
master url: path to my local drupal install

kenorb’s picture

#6
Thanks.

S.Siva’s picture

i did wat u mentioned in this post... but aft i make de changes it showed site offline...

then i installed drupal again....