I have install domain access module on my drupal, but i got problem :
- when i click edit http://domain.com/admin/build/domain/edit/2
i get http://site1.domain.com/sites/all/modules/domain/tests/200.png is not responding and may not be configured correctly at the server level. Server code 4 - when i click http://site1.domain.com/admin/build/domain/view
i get The requested URL /admin/build/domain/view was not found on this server
My setting is
- i create subfolder site1.domain.com on folder publich_html/sites so you got publich_html/sites/site1.domain.com
- i make ln -s . site1 on my publich_html
- i have put on my settings.php before install domain access module
include './sites/all/modules/domain/settings.inc';
require_once './sites/all/modules/domain/settings_custom_url.inc';
require_once './sites/all/modules/domain/domain_conf/settings_domain_conf.inc';
require_once './sites/all/modules/domain/domain_prefix/settings_domain_prefix.inc';
My big question is where is my wrong's configuration and how to fix it to create subdomain with single instalation?
thx
anjjriit
Comments
Comment #1
agentrickardAre you using Drupal 5 or Drupal 6?
Some of those include files are deprecated in Drupal 6.
The basic problem is that you want one folder for all sites. You shouldn't even need the subfolder. Just use the /default folder and point all your DNS records at the same web root. Drupal will figure it out for you based on the $_SERVER['HTTP_REQUEST'].
See INSTALL.txt for more details.
Comment #2
anjjriit commentedagentrickard, Thx
I'm use
drupal 6.15
Domain 6.x-2.1, and sorry i forgot something cause i'm use share hosting, and finnaly I made a subdomain by my domain administration (direct admin) and then made symlink on my publich_html site1.domain.com
I don't know its drupal standard for multisite or not and now on site1.domain.com i have structure
cron.php -> ../../domain.com/public_html/cron.php
includes -> ../../domain.com/public_html/includes/
index.php -> ../../domain.com/public_html/index.php
misc -> ../../domain.com/public_html/misc/
modules -> ../../domain.com/public_html/modules/
themes -> ../../domain.com/public_html/themes/
update.php -> ../../domain.com/public_html/update.php
sites/
sites/all -> ../../domain.com/public_html/sites/all/
sites/default
sites/default/settings.php
same database from domain.com and
$db_prefix = array(
'default' => 'site1_',
'users' => 'shared_',
'sessions' => 'shared_',
'role' => 'shared_',
'authmap' => 'shared_',
)
with this setting I can access http://site1.domain.com from my browser, I can access link http://site1.domain.com/admin/build/domain/view from my http://domain.com domain list
now my question are
Comment #3
agentrickardNo. You are mixing Drupal Multisite with Domain Access.
Domain Access is not multisite. You want one settings file, one database. Just point all the subdomains to the same directory.
See INSTALL.txt for details.
Comment #4
narvijay.thakur commentedi am having the same problem.I have installed drupal6 and then "Access Domain" module and created subdomain "tes.domain.com" but not able to access test.domain.com."Server not found" error appered . Plesae help!
Comment #5
agentrickard@narvijay.thakur
You are probably having server-level DNS issues. See INSTALL.txt for additional notes.
Comment #6
agentrickardComment #7
narvijay.thakur commentedHi
i am using Domain Access module and created some subdomains but i am not able to access these subdomains , "server not found" error appers on screen. I have also discuss with server guys they told me that "wild card" service is not provided by them which is compulsary for "domain access" module to work.
So please suggest me that should i change my host and if yes then which host can provide me these services.
Thanks.
Comment #8
agentrickardWildcard DNS is not compulsory. But any domain you wish to use must be pointed to the same directory. For some configurations, wildcard DNS is the easiest way to do that.
See the VERY explicit instructions in section 2.2 of INSTALL.txt
Comment #9
narvijay.thakur commented@agentrickardy
thanks for your reply
i discussed with server guys they told me that "multiple DNS entries" service is not available on server and this module may not work on this server. So can you please suggest me that should i change my host and if yes which host can provide thsi service.
Thanks for your help.
Comment #10
narvijay.thakur commentedComment #11
agentrickardI cannot tell you which host to use. There are other threads that suggest hosting options. Essentially you just need to ask any potential host if they support what you need.
DA is not really intended to run on shared hosting.
Comment #12
anjjriit commentedHello @narvijay.thakur,
I think, you use share hosting like me.
so you can try my trick.
But for your attention this is not "Drupal standard instalation" for domain access. !!
and maybe @agentrickard doesn't permit it, so maybe you cannot ask any support request because you use not standard instalation
I plan to have Virtual Server Host next time, but now I use this trick to install domain access on my share hosting.
==========
@narvijay.thakur,
Please create domain or subdomain http://site1.domain.com from your control panel !!!
Thanks to @agentrickard for this module,
It's work on my share hosting
Comment #13
agentrickardI simply will not take responsibility for your choice of hosting providers.
Comment #14
agentrickard