Skip to main content

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

Configuring Drupal 10 Multisite on a Single Domain

I'm encountering an issue with my Drupal 10 multisite setup. The requirement is to host all instances of the site on one domain, but with different URL prefixes: site.com/ua site.com/fr site.com/uk My ...
Илья Степаненко's user avatar
0 votes
0 answers
30 views

How can I switch between databases in a multisite environment using the entity API?

I'm working in a multisite environment and need to switch between databases based on certain conditions. I successfully switched the active database connection using Database::setActiveConnection() in ...
Marwen Amri's user avatar
0 votes
1 answer
204 views

Configuring dynamic PHPUnit environment variables

Current State: I'm currently working on running PHPUnit Browser tests in Drupal, and I've successfully configured my phpunit.xml file with these environment variables: <env name="...
Marwen Amri's user avatar
0 votes
1 answer
51 views

In Multisite setup the custom page '/speakers' should available on domain1 site only

I have Multi-site setup , want to make available custom page say '/speakers' on domain1 site but not on domain2 site I have tried to figured out in routing.yml file to check is there way to pass any ...
mini_poojasharma's user avatar
0 votes
0 answers
33 views

Why does changing subsite nginx vhost file to use php8.1 result in /core/install.php for an already installed site?

I'm trying to get the three sites of a multisite installation to use php8, all three have existing vhost files. The root site will use php8 after updating the vhost config, but the subsites respond ...
Steve's user avatar
  • 361
-3 votes
1 answer
53 views

Preventing one site from redirecting to www. prefix in multisite [closed]

I am using Drupal 9, multi-site. Generally, for all sites except one, i want to redirect from non-www to www prefix and i'm using the root .htacces file for it by uncommenting redirect rules. But the ...
Tomáš Bažant's user avatar
-4 votes
1 answer
66 views

What is the correct procedure for creating multi-instances and websites?

I have installed Drupal 10 and it is working with no issues. I can create my first multi-instance with a single website with no issues. The problem I have is when I create my second website in the ...
Jimmy's user avatar
  • 1
0 votes
1 answer
77 views

Shared sites/all/libraries/ directory is not recognized by contrib modules

I'm trying to put the colorbox javascript library to the shared sites/all/libraries directory but it is not recognized by the colorbox module. The same seems to go for the jquery.cycle library. I just ...
Tomáš Bažant's user avatar
1 vote
0 answers
27 views

Why is my translated content loaded on a 'raw' node address even when there is an alias given? (Multilingual Site)

I have two languages (English and Spanish) in my Drupal site. The default language (English) content has already been created and now I need to translate the content (articles/pages/blocks) into ...
techenzie's user avatar
0 votes
1 answer
101 views

How do I configure sites.php for a multi-site with fixed IP and subdir?

I have just installed clean minimal Drupal 9, created a sites/sites.php with the following line $sites['10.0.0.133.drupal.web.foo-bar'] = 'foo-bar.com'; and the following subdir sites/foo-bar.com ...
Tomáš Bažant's user avatar
1 vote
1 answer
465 views

How do I import/export menus?

I want to import/export all menus of site1 in into site2. Currently I am using the entitysync module to synchronize the content between two sites. I can see there is an option for "Custom Menu ...
user3463733's user avatar
0 votes
1 answer
53 views

Different content, one database

Is it possible to have a multi-site installation, where I have different content for each site, but using a single database?
Dion's user avatar
  • 2,398
-3 votes
1 answer
85 views

multisite not working: one site correctly redirected, the other one throwing 500 error

Using Ubuntu 16.04.7 LTS and Drupal 7. Installed Drupal on /var/www/html/drupal Created folders /var/www/html/drupal/sites/siteone.org.es /var/www/html/drupal/sites/sitetwo.com Added settings.php ...
David's user avatar
  • 1
0 votes
1 answer
412 views

drush not finding correct multisite settings.php

I have a Drupal 9 site using multisite to support both local and production hosts. I have defined them in sites/sites.php: $sites['www.electronovelty.com'] = 'www.electronovelty.com'; $sites['www.en9-...
pglatz's user avatar
  • 469
3 votes
1 answer
320 views

How can I override the node template for one multi-site instance?

I have several Drupal 9 sites on multi-site setup. currently all these sub sites use one theme placed in /themes/MyTheme folder. now i need to theme few nodes on site A and site B and this is only ...
user780's user avatar
  • 1,039
0 votes
1 answer
93 views

Multisite same host different basepaths

I have a site for the virtual host example.com, the base directory for the drupal application is example.com/site1. I'd like to setup a multisite but have the sites only differ by the base path, not ...
gary69's user avatar
  • 113
0 votes
0 answers
53 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 ...
NaseemMahasneh's user avatar
1 vote
1 answer
170 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 ...
Berry Dingle's user avatar
0 votes
0 answers
109 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 ...
codewrangler's user avatar
0 votes
0 answers
183 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 ...
MastaP's user avatar
  • 152
0 votes
0 answers
141 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-...
sigridt's user avatar
  • 69
0 votes
0 answers
73 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 ...
Mathias's user avatar
0 votes
2 answers
847 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 ...
corE's user avatar
  • 1
0 votes
0 answers
108 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-...
user101734's user avatar
0 votes
1 answer
38 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: $...
Lance's user avatar
  • 313
0 votes
0 answers
131 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. ...
werqious's user avatar
  • 750
0 votes
1 answer
314 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 ...
Glaze's user avatar
  • 13
0 votes
1 answer
67 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 ...
Potney Switters's user avatar
0 votes
0 answers
22 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 ...
Andrew Morris's user avatar
0 votes
1 answer
493 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 ...
Hoytman's user avatar
  • 713
0 votes
0 answers
339 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 ...
Vaibhav Gidde's user avatar
1 vote
1 answer
109 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 ...
pirmax's user avatar
  • 111
0 votes
1 answer
46 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) ...
Lance's user avatar
  • 313
1 vote
1 answer
121 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 ...
devunder's user avatar
  • 1,194
0 votes
1 answer
52 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 ...
Gaetano's user avatar
  • 61
1 vote
0 answers
172 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 ...
Tibo's user avatar
  • 241
0 votes
1 answer
107 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 ...
briast's user avatar
  • 654
0 votes
0 answers
209 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?
Łukasz Zaroda's user avatar
1 vote
1 answer
22 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 ...
mhowe85's user avatar
  • 33
-1 votes
1 answer
173 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 ...
Tasha Jordan's user avatar
0 votes
2 answers
486 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 ...
André Luiz's user avatar
0 votes
0 answers
971 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 ...
Lloyd_07's user avatar
2 votes
0 answers
172 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: ...
Dave's user avatar
  • 133
0 votes
0 answers
89 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 ...
Max28's user avatar
  • 1
0 votes
0 answers
49 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 ...
user3095551's user avatar
0 votes
1 answer
285 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 ...
sekharctc's user avatar
  • 141
1 vote
0 answers
174 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. ...
Tasha Jordan's user avatar
3 votes
1 answer
1k 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 ...
Stuart Brown's user avatar
1 vote
1 answer
982 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 ...
rwcorbett's user avatar
  • 203
0 votes
0 answers
43 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 ...
skm's user avatar
  • 1

1
2 3 4 5
10