Closed (fixed)
Project:
Domain
Version:
6.x-2.0-rc5
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Nov 2008 at 19:27 UTC
Updated:
23 Jul 2009 at 08:51 UTC
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
Comment #1
agentrickardPlease read the installation instructions, modify settings.php and try again.
Comment #2
webstek commentedhave done
Comment #3
agentrickardI 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.
Comment #4
webstek commentedsorry, connection was down, no problem anymore i deleted the files and magically enough now it works
Comment #5
glasswool commentedHi what files didmyou delete? I am having the same problem...
Comment #6
waverate commentedIn 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.
Comment #7
waverate commentedMy apologies,
In the domain directory there is INSTALL_QUICKSTART.txt. This document said exactly what I needed to do. Disregard post 6.
Comment #8
agentrickardYea, the weeds are why I wrote the Quickstart install instructions.
Comment #9
netron commentedfollowed 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...)
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.
Comment #10
Tim Jones Toronto commented>HOWEVER: if you are logged into one subdomain, you dont get logged into another automatically.
Check out http://drupal.org/project/singlesignon ?
Cheers,
Tim
Comment #11
netron commentedthanks tim.
will try that out.
Comment #12
netron commentedinstalled 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.
Comment #13
netron commentedack. my bad.
you have to configure shared signon to work with the domain access module via a tickbox on admin/settings/singlesignon
Comment #14
netron commentedworking now.
admin/settings/singlesignon
Integrate with Domain module: ticked
master url: path to my local drupal install
Comment #15
kenorb commented#6
Thanks.
Comment #16
S.Siva commentedi did wat u mentioned in this post... but aft i make de changes it showed site offline...
then i installed drupal again....