Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [multi-sites]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

How to setup drupal multisite in cpanel?

I want to setup a drupal multisite but without success. I have followed this tutorials (and search in drupal answer): - 2 minutes multisite - 5 minutes multisite - Setting up a multisite I have tried ...
0
votes
0answers
31 views

How to programmatically check in module if multisite is used?

Is it possible to easily check with code if a site is running as multisite instance?
1
vote
1answer
18 views

Display content assigned to a group

I am relatively new to Drupal, so I apologize in advanced if my question is confusing. I am building a school website that will have a parent district site and then school websites within the ...
-2
votes
1answer
33 views

How to add file to root in multisite installation?

I have a multisite setup. public html - Sites - - All - - site1.com - - site2.com etc. I need to .txt files to the root of each website such as site1.com/ads.txt or site2.com/robots.txt If I ...
0
votes
2answers
53 views

Duplicate content between multi-sites

I'm working on a feature of a Drupal 8 multisite with separated databases for each site trying to implement the following requisite. When posting news to the main site (all the other sites are ...
0
votes
0answers
31 views

502 Bad Gateway nginx for a drupal sub-directory site install

I have a default drupal 8 site install and a sub directory site install. The second Drupal site was an after thought and had to be hosted on the default site url in a sub folder. both sites share the ...
0
votes
0answers
17 views

LDAP decrypt function throwing undefined offset error

The error shows up on all of the pages of a "secondary" site in a multi-site configuration. The main, default, site does not show the error. The complete error message is: Notice: Undefined offset: ...
0
votes
0answers
136 views

Nginx virtual host configuration for multisite with sub-directory

We've Drupal multi-site (with different domain per site) running with single Drupal 8 code base and nginx. Now we wanted to setup Drupal Milti-site with sub-directory for few websites in following ...
0
votes
0answers
24 views

“object not found” error while creating a multisite

i have an existing working D7 site in my local. when i tried to create another site with same code-base and different db, it is showing "object not found" on hitting url. Below are the list of steps i ...
0
votes
0answers
20 views

How to maintain two domains in the same installation having different $base_url

I have published a new domain for my drupal installation. It has a fixed $base_url configured in settings.php. For example: https://www.olddomain.com.ar . It throws an ajax exception when I use a ...
0
votes
0answers
19 views

Front page per language (paragraphs) [duplicate]

I have a multilingual site in Drupal 8 that needs to have a different node for front page on each language. The node alias is homepage and it needs to look clean. Ex. site.com/us/ site.com/ca-fr/ ...
0
votes
1answer
32 views

How to add file extensions while creating a field (type file) through the module installer.yaml?

I need to add 4 fields to an existing content type in Drupal 8 website, 2 of them is text another 2 is file type, I have a multisite setup and have 30 country-specific sites so I need to add for every ...
1
vote
0answers
24 views

Multisite configuration with multiple domains and subdomains

Im using CPanel and Drupal 7. In CPanel I have created 2 domains and pointed to my drupal installation. In the drupal sites folder I have added a folder for each domain and added the settings file. ...
0
votes
0answers
58 views

Using Composer in a multisite installation

How do I manage modules via composer in a multisite architecture? For example, if I want one site to have version 2.3 of a module, and another to have version 2.4, how do I do this? Do I have a ...
0
votes
0answers
27 views

Drupal docker deployment - where to put the core?

Are there best practices for large (multi-)site installations of drupal on docker and k8s that could help us to decide where to place the Drupal core? We have a code-base that will be used up to 100 ...
1
vote
1answer
125 views

Can I still share data tables with multisite, using shared database, in Drupal 8 or do I need to use 'Domains' contrib module?

I have a multi-site setup that is working in Drupal 8 (8.6.13) - all of the sites share the code-base and database happily but I cannot seem to share data tables between the sites using the prefix ...
0
votes
0answers
37 views

Do we need any init steps in this scenario?

In Order to install Drupal Core using Code deploy, I follow these steps. Download drupal-7.x.zip /usr/bin/unzip -o /tmp/drupal.zip /bin/mv /var/www/drupal-7.x /var/www/drupal Similar steps to ...
1
vote
1answer
21 views

After upgrading from drush 7 to 8 with multisites, using drush from site directory cannot find drupal 7 (Windows)

Previously with drush 7, I could cd to the site directory (e.g. sites/example1.com) and perform drush commands (e.g. drush st). Now with drush 8, unless I specify the root in the drush command, it ...
0
votes
0answers
19 views

Theme files being pulled from sites/default/files rather than sites/<sitename>/files

I'm pulling down a repository of a D8 multisite install and running it locally. The sites are set web/sites/default and web/sites/mysite. In the root of sites there is a sites.php which contains $...
0
votes
0answers
77 views

JSON API calls to multisites return error 503 service unavailable, but it works for my main site

I have a multisite D8 configuration running and I'm using jsonapi to retrieve content. When I retrieve content from my main site (in sites/default) it works perfectly. But when trying to retrieve ...
0
votes
0answers
11 views

Feature gate custom module from sites/all in Drupal 7 multisite

I am working on a legacy drupal 7 multisite and want to see if I can "feature gate" a module in sites/all/custom instead of loading it per individual site. For example, lets say I have 5 sites in my ...
0
votes
1answer
97 views

Multi Domain Robots.txt

I have multiple sites running on a single code base in Drupal 8. Is there any possible way to add different robots.txt file for each site?
2
votes
2answers
63 views

How to translate Groups in a multilingual site?

I have created a new grouptype and added some fields to have a "site". And then created a new group with this grouptype. I edited the overview site with some information. Now I would like to translate ...
0
votes
1answer
40 views

Multi-site, shared users, paid access

I'm working on a project that involves multi-sites in Drupal 8. The client specifically wants to have shared user accounts across all 4-5 sites. As of now the sites share a codebase but not a shared ...
1
vote
0answers
43 views

How do I get the path of the favicon in a multisite?

I have a multisite website with multiple themes,each contains favicon. I have to show the favicon from the active theme in website. Admin page shown the favicon from admin theme or if favicon is not ...
1
vote
1answer
69 views

How can I have separate databases for each domain (countries) of my Drupal website?

I want to have one Drupal website codebase and one apache server instance, but have each country (domain) have it's own database. Practical example: I want all content to be completely separated ...
0
votes
1answer
31 views

Links to files breaking

I just wanted to see if anyone could offer some thoughts or opinions on an issue we are having. We are running Drupal 8 multisite via Aegir. We have a production environment and an identical testing ...
1
vote
0answers
295 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
2answers
29 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--...
1
vote
1answer
282 views

Subtheme for Subsite in Multisite

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, ...
1
vote
1answer
828 views

Programmatically get current multi-site instance name

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
99 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
34 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
2answers
206 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
157 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
1answer
129 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
347 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(); $...
1
vote
1answer
31 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
597 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
110 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 ...
1
vote
0answers
36 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
1answer
53 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
72 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 ...
6
votes
2answers
2k 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
45 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
1answer
25 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
90 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
505 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
417 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
637 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 ...