Hi,
When i enable the DomainAccess.module; my site crashes. There are only blank pages. 'page not found error' is not displayed.
i performed the following steps..........
#created host alias in C:\windows\system32\drivers\etc\hosts for mydomain.com
#created virtual host in httpd-vhosts.conf
here my document root is set to D:\PHP
DocumentRoot "D:\PHP\mydomain"
ServerName mydomain.com
ServerAlias *.mydomain.com
Allow from all
Options +Includes +Indexes +FollowSymLinks
AllowOverride all
# i created a folder 'mydomain' in document root and inside it put all files that comes with drupal-5.8
# created a database named 'mydomain' in MySQL 5.0
# installed the drupal by connecting it to the the database 'mydomain' successfully.
# created the first account. now i can create the page and story .
# copied the DomainAccess.module 5x-1.6 to D:\PHP\mydomain\sites\all\modules
# now when i enable the DomainAccess.module from admin/build/modules and click on SaveModule button a blank page appears. On pressing the back button it takes me to home page where again on pressing any link a blank page is displayed
I have read README.txt and INSTALL.txt but could not figure out any solution.
The patches mentioned in these files are optional so i decided to install it without any patch or changes to settings file.
Plz help. After reading the documentation i found this module suitable for my Website development and without this i cant start the development.
I am using Drupal 5.8, MySQL 5.0, Apache2.2,DomainAccess 5.x-1.6 on windows
Vinod
Comments
Comment #1
vinod.jain commentedComment #2
agentrickardMisconfigured host files is the likely issue. I cannot help you troubleshoot this on Windows.
Comment #3
usonian commentedIf it helps, Windows' hosts file lives at
C:\Windows\System32\drivers\etc\hosts
Comment #4
danmuzyka commentedFirst of all, thanks for creating this module and for providing so much support for it. You seem to be updating it and providing support quite regularly.
Unfortunately, I am having the same issue with version 5.x-1.6 on Linux.
I was trying to set up siteadmin.example.com as the base domain because example.com is already in use for something else. The other sites will just be at other subdomains, e.g. one.example.com, two.example.com, etc. In the DNS I created A records for each subdomain and pointed them to the IP address for the server where Drupal is installed. Then I set up virtual host configuration files for siteadmin.example.com and several of the other subdomains.
Here is a sample of the virtual host configuration file:
I had the same experience as vinod.jain: I set up a fresh installation, enabled clean URLs, and the site seemed to be fine. Then, I enabled the Domain Access module, and I just saw a blank page. Oddly enough, my browser took me to http://admin/build/modules instead of http://siteadmin.example.com/admin/build/modules .
After trying to muddle my way through the Apache documentation, ( http://httpd.apache.org/docs/2.2/vhosts/name-based.html ), I decided to declare a NameVirtualHost in the siteadmin.example.com.conf file. I commented out:
and added:
to the top of the file. After restarting Apache, http://siteadmin.example.com/admin no longer redirected me to http://admin ... instead it gave me a 404 error.
While I was still logged in as administrator, I found that I could also browse to http://siteadmin.example.com/?q=admin and at least get the HTML portion of the page. The path to external files (images and CSS) did not seem to be getting set correctly, however.
Does it seem as though I am misconfiguring the virtual host? Or could something else be the problem? Any suggestions you can provide would be a huge help. Thanks! I am really excited to use this module!
My configuration:
Drupal 5.10, MySQL 5.0.26, Apache2.2.3, DomainAccess 5.x-1.6 on Linux/SUSE
Comment #5
vinod.jain commentedyou are not getting my problem.
tell me the steps i have followed are correct or is there any mistake .
If the steps i have taken are not correct then plz guide me how to install DomainAccess.module
Comment #6
vinod.jain commentedI have already written about the changes i have made to C:\Windows\System32\drivers\etc\hosts.
My main issue is that i am not able to use DomainAccess.module.
My virtual host settings are
It was not printed correctly in my first post
Comment #7
asd123asd5 commentedI can confirm I am having an almost identical issue.
I am running 5.10 and the latest stable release of domain access.
Running WAMP on XP. VHOSTS seems to be set up fine, as domains resolve perfectly.
The only different thing that has happened to me, is that whenever I try to enable it hangs. Then, as with the OP every page is white.
I have looked under watchdog in the databse and found over a thousand entries for:
Duplicate entry '1-0-domain_site' for key 1
query: INSERT INTO domain_access (nid, gid, realm) VALUES (1, 0, 'domain_site') in C:\Program Files\wamp\www\enj\includes\database.mysql.inc on line 172.
This would explain why it's hanging, but not why it's doing this. Im not really sure how to proceed in debugging this, I doubt it is a problem with the module, so I'm left wondering if I've done something wrong.
NOTE: This is on a local test copy of a site I have running live currently.
NOTE: This happens regardless of what modules I enable at the same time, or if I only enable domain access.
Comment #8
Garrett Albright commenteddanobrienmuzyka: Your problem seems to be the same as what I mention in this issue. I've provided a patch, but it's for the D6 version of the module; still, if you know your way around PHP, you may want to try making the tweak in the patch yourself and seeing if it fixes things.
Comment #9
agentrickardThis is what happens when other people don't test patches!
It looks like #293453: Wildcard DNS - default domain broke this. BUT NO ONE TESTED IT.
See #300311: Fresh installation causing nasty problems.
Comment #10
agentrickardFor now, comment out line 63 domain.module:
Comment #11
vinod.jain commentedThank you for the reply.
while i was searching for the solution i landed on the token #300311 (now mentioned above), and i applied the patch provided there.
So is it still necessary to comment out line 63 in domain.module? Because if i apply the patch and does not comment the line 63 in domain.module i will be able to fix Wildcard DNS - default domain problem also.
are there other patches also to which i should pay attention for proper functioning of the Domain.Access.module.
If so plz provide the links for related tokens.
Thank you all.
Comment #12
agentrickardThis is fixed in 6.x.1.1 and 5.x.1.7.
The other patches need testing -- lack of testing is what caused this issue.
See #298696: * ROADMAP * Please read this first for a list of current patches that "need review."
Or see http://drupal.org/project/issues/domain?projects=99990&states=8
Ideally, each point release is stable, and does not require patches. That is why we had 5 release candidates before 6.x.1.0. That is also why I sound so angry in this thread.
Comment #13
danmuzyka commentedThank you so much for fixing this in version 5.x-1.7! I am so excited to start using this module!
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.