Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Use it for questions about configuring Drupal as multi-site, and/or using Drupal's multi-site feature.

0
votes
0answers
30 views

Domain Access Module not working for second domain?

I have installed the Drupal on Main Domain and install the module Domain Access. Under the setting of Domain I have setup the other domain where I want to use . EX: example.com Ex: example.com.au ...
0
votes
0answers
20 views

How do you add the hreflang header for international targeting?

I would like to add hreflang into drupal 7 for international targeting and would help search engines to US sites and UK sites. How to do add best ways? 1) Where do I add in Google Analytics? 2) ...
0
votes
0answers
9 views

Multisite - Subpath - Image backend preview path duplication

We are currently starting of a new multisite project in Drupal 8. This time not with subdomains, but with subpathes, e.g.: localhost/site-1/ localhost/site-2/ ... For now it is running quite well, ...
0
votes
2answers
15 views

Using template on subsite for certain node type

I am using a custom Theme in a multisite setting. With the help of @leymannx I implemented hook_theme_suggestion_HOOK_alter to insert a page Template with the following naming convention: page--...
0
votes
0answers
9 views

run drush commands on all sites in a multisite setup [duplicate]

I have a multisite setup with 20 microsites which work identical and have the same config files. By extending the functionality I need to import new configs to all the sites all the time, which is ...
1
vote
1answer
52 views

Subtheme for Subsite in Mulitsite Setting Drupal 8

I have a Drupal 8 Multisite setup with the following Folder structure: themes custom_theme main_custom_theme sites site1 themes subtheme1 site 2 So I want both sites to use main_custom_theme, ...
0
votes
0answers
32 views

How do I make a multi-site configuration work properly with the domain manager user role?

I'm creating a multi-site instance in which there is main domain and some other domains. Such as maindomain.com, subdomain.maindomain.com, somedomain.com etc. What I want is to add domain by the root ...
0
votes
0answers
29 views

Create multisite using same directory (no subdirectories) without using symlinks

This is an unusual situation but we need to be able to make multisite duplications of the main site programmatically that uses the same database and the same codebase. For example mysite.com/testpage ...
1
vote
1answer
158 views

How to identify multi-site programmatically?

Let's say I have the following multi-site setup: $sites['hello-world-a.com'] = 'a'; $sites['stage.hello-world-a.com'] = 'a'; $sites['dev.hello-world-a.com'] = 'a'; $sites['hello-world-a....
2
votes
2answers
74 views

Shared subset of users in a multi-site instance

Can I have a shared subset of users in a multi-site instance? In other words, I have the same list of administrators across all sites. Can these administrators be admins for all sites through a shared ...
0
votes
1answer
26 views

Prevent sites from receiving modules installed by other sites in a multi-site instance

Can I prevent a site from receiving modules installed by a different site in a multi-site instance? In other words, can site A in a multi-site instance not receive a module installed by site B? I am ...
0
votes
0answers
93 views

Drush site install multisite existing config

I am currently facing a problem that drush si for a new multisite is not possible: drush si --config-dir="/var/www/html/config" --sites-subdir="sub8.localhost" --db-url=mysql://root:root@mariadb/sub8 ...
0
votes
0answers
46 views

How do I mask my Drupal subfolder without affecting my subsites?

I'm running Drupal 8 multisite with one primary site at example.com and a subdomain at sub.example.com. Drupal is installed in /public_html/foo/example.com/drupal. The document root for example.com ...
0
votes
2answers
59 views

Drupal multi-site in an add-on domain?

How can I configure Drupal 8 with multi-site under an add-on domain using cPanel? I'm getting a 404 when I browse to my subdomain after following these steps: Clean install of Drupal to my add-on ...
0
votes
1answer
37 views

How to relate an image to an article when posting the article in REST API

Using the following code we can post a node trough rest API. However, if there is an image attached to this article we need to post the image node first and then include the image fid in the article.I ...
0
votes
0answers
23 views

Multidomain with sub-folder

I'm trying to make a multi site installation with 2 websites: www.test.com www.test.com/store So I've added inside the folder sites the file site.php with: $sites['test.com.store'] = 'store'; Then ...
0
votes
1answer
49 views

Bootstrapping a Drupal 8 Subsite

It's possible to bootstrap Drupal 8 and create a new node using answer # 174474. define('DRUPAL_DIR', '/usr/share/nginx/html'); use Drupal\Core\DrupalKernel; use Symfony\Component\HttpFoundation\...
0
votes
0answers
67 views

How to change the entity_type.manager so that it uses another database for entity storage

Using the following codes we can change the connection to an external database. $database = Database::getConnection('', $database_key); //'external' $container = \Drupal::getContainer(); $...
0
votes
0answers
18 views

i18n in a multisite with Subfolder module

I am using Drupal 7 with Domain Access & Subfolder domain modules to set up a multidomain site. I have www.example.gr as default domain and www.example.gr/sub for subsite. I am trying to add a ...
0
votes
0answers
34 views

(site)/sites/all/modules/contrib/domain/tests/200.png is not responding error.

(site)/sites/all/modules/contrib/domain/tests/200.png is not responding as expected and may not be configured correctly at the server level.Server code -111 was returned. I get the above error in ...
1
vote
1answer
30 views

How can I set a different theme basing on the language currently used for the page?

We have built one website in English and we want to translate it in Arabic. Since I am new to Drupal, I am not sure how I can set a theme for English, and one for Arabic. How should I achieve this?
0
votes
0answers
200 views

The specified library “bootstrap/drupal.ajax” does not exist

I'm trying to separate a multisite instance in to separate websites. I created two separate instances and moved custom themes and contrib modules in to site specific folders. When I try to load the ...
1
vote
1answer
64 views

Unit testig on multisite

I am trying to simulate a multi-site environment in an integration test with phpunit. I know how to init a new database connection with Database::addConnectionInfo but how can I cleanly switch the ...
0
votes
0answers
24 views

“Complex” multisite requirements

I have a question regarding a large multisite project. The customer has several pages that share the same user right, the media, some content and the users. But they have different themes and some of ...
0
votes
0answers
15 views

Managing new features in a multisite environment already in production

I apologize for my limited english. I'm currently responsible for maintaining a multi-site Drupal 8. I have several instances already in production. They share the same code (core, themes and modules)....
0
votes
1answer
33 views

How can i use DB Connection of another site of my multisite?

Following situation: I have a multisite with several sites. The codebase is the same but every site has his own database. Now i'm creating a module where i want to make adjustments in the databases ...
0
votes
1answer
37 views

How to on Multisite manage users over 1 site

My client need 13 Pages with different domains, so we decided to make different DBs with same codebase. Now, he want to manage the users (admin, editors) over 1 site, so he can select which user has ...
3
votes
2answers
644 views

Drush @sites not implemented in drush 9

Since drush 9 (drupal 8.4 requirement), alias @sites does not seem to be implemented anymore (or yet ?). $ drush @sites cr The alias @sites could not be found. Is this a way to get the same behavior ...
0
votes
0answers
33 views

Multisite & Views on Drupal 8

In a multi-site configuration in Drupal 8 with (N) cloned (carbon copies) sites, is there any way an individual site can pull the content from other sites in the network into a View on its instance? ...
0
votes
0answers
45 views

Multisite with shared Users

I want to build a project with 13 different sites, each one with its own domain and own database. They share together a single code-base. To manage them easily in the backend I want to create a shared ...
0
votes
1answer
18 views

Problem with i18n_string + features + sites with different default language

(I will talk about i18nviews in this question, but I think the problem applies equally to other cases of i18n_string) Background With regular Drupal t(), Drupal will always assume that the original ...
1
vote
2answers
52 views

Defining hook_menu() paths for specific base URLs

I have a multi-site; each site has its own database but they all share the same codebase. I would like to know if there is a way to define hook_menu() paths at specific base URLs. Being it a ...
1
vote
2answers
246 views

“No Drupal site found” — Windows and SQL Server

So I'm trying to upgrade our system from using Drush 6 to Drush 8, as that is the currently supported version of Drush that supports Drupal 7. I have managed to get drush working, however it does not ...
0
votes
2answers
144 views

How to set up Https on a drupal multisite?

I made a couple websites on a drupal multisite setup.. and I want to start using https. And.. I'm just lost. Can anyone help me get started? So, here's the details of how I have things set up.. So ...
0
votes
1answer
258 views

Configure web.config to redirect non-www requests to www for multi-site Drupal 7 Install

I have a multi-site Drupal 7 install running on Azure that I would like to force all non-www traffic to the www address for all sites. I have tried a number of examples from around the web but none ...
1
vote
0answers
17 views

Drupal 7 :: Configure Master admin under Drupal multi domain website [duplicate]

I want to configure Master admin under Drupal multi domain website so that admin does not need to switch the login between multiple websites. For example, if I have 3 websites under single Drupal ...
0
votes
1answer
18 views

Exclude the www- append to only one multisite

Stock Drupal 7 contains the following in the .htaccess file # To redirect all users to access the site WITH the 'www.' prefix, # (http://example.com/... will be redirected to http://www.example....
-1
votes
1answer
118 views

Is there any specific difference between multi site and multi domain?

I didn't see any specific difference between multi site and multi domain. If there any specific reason to differentiate them?
0
votes
0answers
21 views

Language is not changed

I have a problem that I cannot solve, basically if i ssh to the test or production server and run drush eval 'drush eval 'global $language; print_r($language);' I always get English back, although in ...
0
votes
0answers
23 views

After site URL change site goes to install.php (D7, former multisite, now standalone)

This is a Drupal 7 site with the following history: was Drupal 6 in a multisite setup. moved to a Drupal 6 standalone site (years ago; no problems). upgraded directly to Drupal 7 (years ago; no ...
1
vote
1answer
30 views

Multisite - Commerce reference between sites

Setup Main website: www.example.com LMS website: lms.example.com The Main website is public facing for visitors to browse the courses. The LMS website is for the users/commerce to be managed and the ...
0
votes
1answer
24 views

Setting multisite in WAMP

I have created folder structure like below: Main Drupal: www_d8multisite_com Subsite1: www_d8multisite_com/sites/default/ms1 Subsite2: www_d8multisite_com/sites/default/ms2 And put the sites.php ...
0
votes
1answer
26 views

unable to create new site

I am new to drupal. Trying to understand the possibilities of drupal, I have installed drupal8 and followed some tutorials to create a site with a custom theme, custom modules and custom blocks. So ...
0
votes
1answer
56 views

Multisite: Only Drupal Root recognized for subpath

I am having a Drupal 8 multisite installation: Hostname: example.com 1st Drupal site: in example.com 2nd Drupal site: in example.com/sub/path I have configured this in sites.php: $sites['example....
-1
votes
1answer
82 views

Change domain based on location

I want to create one website for multi-countries and each country's website content should be different according to the selection. But the file and database should be single. For example, For ...
1
vote
2answers
111 views

Multilingual multisite problem after changing standard language

We have a multisite and one site is multilingual with (i18n). It contains a lot of translated views (title and standard words like "more" being translated with Views translation (i18nviews)). This ...
1
vote
0answers
325 views

Multi-country and multi-language website

I’m trying to create a Drupal 8 website with multi-country selection and more languages available for each Country. For example, the visitor can select Belgium as his Country, then he should be able ...
1
vote
0answers
547 views

How can drush site-alias show all sites, but drush @sites command don't find them?

We are running a drupal 7 multi-site installation within a (windows based) cloud service. We have drush 8.1.10 installed via composer. For the update process, I want to be able to use drush @sites ...
0
votes
1answer
75 views

Multisites with shared files folder – good or bad idea?

I'm lacking experience on the following issue and unfortunately it isn't documented explicitly. I'ld like to have a shared files folder for a handful of multi-sites. As those sites all represent sub-...
2
votes
1answer
47 views

Copying a site to a multi-site installation

On Server A (debian) drupal was installed by the package manager. So basically the codebase is at: /usr/share/drupal7 with /usr/share/drupal7/sites symlinking to /etc/drupal/7/sites. Server B has ...