I have install domain access module on my drupal, but i got problem :

  1. 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
  2. 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

agentrickard’s picture

Are 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.

anjjriit’s picture

agentrickard, 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

  • Did my setting above is correct / standard drupal installation ?
  • I cannot see the affiliate content wich i created from domain.com on site1.domain.com
  • my finall target is i want to make a views on domain.com to display html content list or teaser from site1.domain.com and site2.domain.com
agentrickard’s picture

No. 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.

narvijay.thakur’s picture

i 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!

agentrickard’s picture

@narvijay.thakur

You are probably having server-level DNS issues. See INSTALL.txt for additional notes.

agentrickard’s picture

Status: Active » Closed (fixed)
narvijay.thakur’s picture

Assigned: anjjriit » narvijay.thakur
Priority: Normal » Critical
Status: Closed (fixed) » Active

Hi

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.

agentrickard’s picture

Status: Active » Closed (fixed)

Wildcard 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

narvijay.thakur’s picture

@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.

narvijay.thakur’s picture

Status: Closed (fixed) » Active
agentrickard’s picture

I 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.

anjjriit’s picture

Hello @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,

  1. eg, you domain is http://domain.com
    Please create domain or subdomain http://site1.domain.com from your control panel !!!
  2. create symlink your drupal file and folder from four domain domain.com to your domain site.1domain.com

Thanks to @agentrickard for this module,
It's work on my share hosting

agentrickard’s picture

I simply will not take responsibility for your choice of hosting providers.

agentrickard’s picture

Status: Active » Closed (fixed)