


For example, Drupal can control what sites can access themes and models by putting them in a folder that only certain websites can access. The system administrators can implement limitations too. This functionality is what enables it to serve different themes, modules, and content to each website. The Drupal maps the request when it reaches the server to determine which database and configuration to load. Every folder connects to a different database and has its own settings and binary files. It can achieve this by creating a folder for each unique website within the /sites/ folder of the Drupal platform. You can even host each of the websites on a separate server! Each site is entirely separate, though, and can contain its own content and database. The codebase serves as the set of standardized elements and common resources for the websites - but the multisite structure allows each one to remain independent.Īnother way to think about it is that you are creating separate websites within the single codebase you develop. So, how can you leverage a Drupal multisite to ensure that you deliver a consistent brand experience while giving departments and staff members the flexibility to manage their own microsites? Start by reading this comprehensive guide about the best practices for building a university multisite with Drupal! Drupal Multisite: The Basicsīefore we dive into things to consider when building a university multisite with Drupal, it is important to start with the basics: what is a Drupal multisite and how does it work?Ī Drupal multisite is a platform that allows you to run many different websites with one single codebase. The Drupal website content management system (CMS) is scalable, secure, and open-sourced, so you can access the technology you need to keep up with the complexities of higher education.

Once the site is working do not forget to remove "createsymlink.php" that you have created.Setting up a Drupal multisite for universities and colleges is one of the go-to strategies for content management. Now all the configuration is done, now visit "/install.php" and follow the onscreen instruction.ġ3. Visit the file with your browser by going to "/createsymlink.php" once, there won't be anything fancy as output.ġ2. Please change the names as per your setup.ġ1.
Drupal 9 multisite code#
Go back to "public_html" folder and create a file called "createsymlink.php" and copy the following code and save it.
Drupal 9 multisite update#
Open "settings.php" in edit mode and update the database configuration with new database name, db user and password and save it.ġ0. Copy "" and "settings.php" files from "/sites/default/" and paste it to the folder you've just made.ĩ. Go to within "public_html" folder then go to within "sites" folder, you will be able to folders like "all", "default". Go to "file manager" and in your "/home/example/" directory, you will be able to see a folder called "", cPanel has made for the subdomain, delete this folder.ħ. All these steps are available in the same cPanel page of "MySQL® Databases".ĥ.Then go to the "Subdomains" in cPanel, create a subdomain. Add user "anotherappuser" to database "anotherdb" with all privileges.

Add a new MySQL user like "anotherappuser" with a strong password.Ĥ. Create a new database let's say "anotherdb"ģ. Login to your cPanel and Go to "MySQL® Databases" options.Ģ. As as example, let suppose a running website is a drupal 7 website and as a multisite that we wanted to create.īelow are the steps that I followed to achieve it.ġ. Let's suppose you already have a domain setup and running Drupal 7 code for your website and you manage your hosting using cPanel.
