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
0answers
45 views

Page not found while accessing website content

I set up a Drupal 9.2.1 site, which working fine until I set it up as multi-site. I have the master site in the main directory for Xampp (C:\xampp\htdocs) in the master.com directory I created six ...
1
vote
1answer
48 views

Do I need to set up public files directory for multi-sites differently?

I had some Drupal installations which I merged into a multi-site installation. When they were single installations, I created a files in the root directory and set the system permissions for the ...
0
votes
0answers
37 views

Using Drush 10 and sql-sync with path based sites not working

We have two websites running off a single domain: https://www.mywebsite.com https://www.mywebsite.com/mywebsitetools Both websites have their own databases and are hosted by Acquia. We've been using ...
0
votes
0answers
40 views

How can I sync just roles/permission config across multi-site instances?

On a Drupal 8 multi site, we need to have unified ROLES/permission config in all sites. Then we'll assign these roles to users via interface or Drush. How could I export / import? Or even better sync ...
0
votes
0answers
30 views

Multisite doesn't work after upgrade

I have a docroot with 2 websites, both share core and contrib modules. I have 2 DB, one for default and another for subdomain. Inside "sites" folder also have 2 different folders: default ...
0
votes
0answers
40 views

How do I force /web in the URL?

I have installed Drupal 8 as multi-site using Composer (as described by kalose). Basically, the folders created as subdomain-folders have been replaced with a symbolic link to the respective sub-...
0
votes
0answers
21 views

Webform give error if default language is deleted

Created a webform in language en-gb. Now as per project requirement, en-gb language not a requirement anymore. After deleting en-gb language, admin/structure/webform/manage/contact start giving below ...
0
votes
0answers
29 views

Making multisite work

I'm quite familiar with Drupal (Drupal 7, 8 and now 9), but never made a multisite. I've been looking for some documentation and I fear that it is yet not complete for D8/D9. Many references can be ...
0
votes
2answers
219 views

php.ini opcache path for multiple websites with shared code base

I have a D9 website set up already and I want to add another that shares the same code base. (This is on a shared hosting environment) Below is an example my current php.ini settings for the opcache ...
0
votes
0answers
110 views

Multi-site user share with different databases

I am trying to setup multi-site on Drupal 9.1 using a shared codebase with separate databases. Working within each site separately has been fine, and I'm ready to start working on sharing users and ...
0
votes
0answers
54 views

How can I query a webform in all instances at once to export a file?

We recently had a security breach and those making the decision opted to remove the capability of end users to create the file upload component. What I am hoping to do is two-fold: 1.) Use drush sql-...
0
votes
0answers
36 views

New site (multisite) setup results in NotFoundHttpExcetion on homepage

I am trying to setup a new site using the multisite pattern in Drupal 8. The existing site in the repo works great. I am running within Docksal locally (which is a docker orchestrator). I have tried ...
0
votes
1answer
18 views

Point dev URL to the default folder of a multisite

In a multisite set up, the default domain www.domain.com point to the 'sites/default' folder. I want a temporary subdomain point to the default site for development. In the sites.php files I have: $...
0
votes
0answers
31 views

Conditional .htaccess rule for multisite sitemap.xml

We have multiple sites hosted with Domain access module. I was planning to host sitemap.xml files like web_root/zyx.com/sitemap.xml and web_root/abc.com/sitemap.xml. I am using the following code. ...
0
votes
1answer
135 views

Copying prod multi-site installation to dev multi-site installation

I am attempting to upgrade my Drupal 8.9.2 multi-site installation to D9. I was hoping to work this all out on a development installation, that is located in a subdirectory of my home directory on my ...
0
votes
1answer
24 views

How do I add a site to a multi-site

I am trying to convert my installation to a Drupal multi-site. I have the original site (www.original.com) with a settings.php file under the sites/default folder. I want to add a new site by adding ...
0
votes
0answers
17 views

Using a specific URL for a page within a multisite

I have a multi-site that I've got setup with a page created for a client, but they wanted a specific URL to point to it. For example, client.mywebsite.com/content/client-page should be only shown as ...
0
votes
1answer
153 views

Use drush to install a module on all of the sites of a multisite at once

I have a Drupal 8 multisite, setup with 6 different sites. I want to install Admin Toolbar on all of them on my local dev environment (mamp / terminal / drush). I have downloaded that module using ...
0
votes
0answers
171 views

How do I dynamically add og:image meta tags in drupal multisite

I have drupal 8 multisite setup, where I am creating multiple site using some script technique and rendering the data using domain name via twig files by fetching from dynamodb records. So my ...
1
vote
1answer
57 views

How can I serve individual static text files with the same name from the webroot for each multisite instance? [closed]

I use Drupal 8 and I want serve statics files in each multiple sites with Nginx. I've a site at web/sites/site_1/ and a site at web/sites/site_2/. I want serve ads.txt or robots.txt for each sites ...
0
votes
1answer
37 views

Should a splash page linking to other multisite instances also be a multisite instance or a bare HTML page?

This is the situation: Global domain: www.domain.com (exists of one page, with links to other 3 subdomains) Sub domain 1: sub1.domain.com (full website) Sub domain 2: sub2.domain.com (full website) ...
1
vote
1answer
53 views

How to use a set of global and per subsite permissions in a multisite installation?

Use case: I have a multisite installation in which I want to define a global configuration to be available to all subsites. I define this configuration in the default site. For this example let's say ...
0
votes
1answer
31 views

Multi-site for user groups

I have to carry out a procedure for the management of information by a group of users. Later I could have the same need but for a group of different users. Since I haven't understood how the multisite ...
1
vote
0answers
92 views

How do I handle a site with subdomain using the Domain Access module? [closed]

I have a site which as a federal level and a subdomain by state. I'm using Domain Access module which works great for some basic things such as contents by domains. But I've got other challenge to ...
0
votes
1answer
73 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
60 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 ...
-1
votes
1answer
93 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
228 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
453 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 ...
2
votes
0answers
104 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
50 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
23 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
1answer
175 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
46 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. ...
1
vote
1answer
396 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 ...
1
vote
1answer
561 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
39 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 ...
2
votes
1answer
38 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
22 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
12 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
192 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
153 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
57 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
84 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
119 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
40 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
501 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
36 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
630 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
2 3 4 5
10