Skip to main content
Appic Softwares Logo - Custom Software and App Development Company
  • AI/ML
  • Services
  • Industries
  • Platform
  • Hire Talent
  • Our Company
  • Blog
Contact Us
HomeBlogDrupal

Step By Step Guide To Create Multi-Site In Drupal With Lando

Shubham Pareek
Dec 13, 2023
Back to Blog

Table of Contents

  • Defining Lando
  • When should I think about having many sites?
  • Steps To Create Multi-Site In Drupal With Lando
  • Conclusion

Share this

Step By Step Guide To Create Multi-Site In Drupal With Lando

This tutorial will teach us how to set up Drupal multi-site utilizing Lando, with a shared (single) codebase and a different database for each site on a local computer.

Defining Lando

Lando can be considered a Docker Compose tool as well as an abstraction layer and superset of the latter. Lando, as an abstraction layer, significantly lowers the difficulty of spinning up containers
by defining “sane defaults” and exposing only the configura
in the USA

tion that is pertinent to a particular “service.”.

When should I think about having many sites?

  • Let’s first examine when a multi-site setup is appropriate before delving into the technical aspects of doing so.
  • The arguments provided and the Pros & Cons listed below will assist you in determining whether or not multi-site is appropriate for your sites.

 Pros:

  • Simple to keep up:
  • Reduced expense of development:
  • Assign distinct features and themes to every website:

Cons:

  • lone point of failure:
  • Site traffic control:

Please be aware that we won’t be going over how to install Lando. For further information, view the official Lando document.

Steps To Create Multi-Site In Drupal With Lando

Step 1: let’s configure a multi-site using Lando.

  • Lando utilizes a configuration file, which enables us to launch many services and ensure optimal operation of our program. Normally, all that would be required to run lando and Drupal without any issues would be to run the lando init command. This configuration file would then be generated automatically.
  • In the event of a Drupal Multi-site installation, on the other hand, we will need to generate our own Lando configuration file and adjust it to suit our requirements, including the URLs for our subdomains and the access information for every database, among other things.
  • While numerous additional configurations can be added to a project of this kind, I’ll provide you with the basic file below, along with an explanation of each area that’s crucial, so you can use Lando to launch multiple Drupal sites. Open the folder from which you obtained the Drupal Base files, and use the following code to create a file called.lando.yml:

Drupal With Lando | Appic Softwares

Explanation:

  • The project name and the primary web root configurations are located in the first section of the configuration file.

Drupal With Lando | Appic Softwares

  • The Proxy section is where we will specify the various domains for our Drupal sites. As with a standard Drupal Multi-site installation, the main name of each domain must match its installation folder.

Drupal With Lando | Appic Softwares

  • All of the data about our databases will be defined in the final section of the configuration file. Keep in mind that you may use the information command to verify all the details once Lando has started:

Drupal With Lando | Appic Softwares

Step 2 – Configuring the multi-sites and main Drupal

At this stage, we need to make a few tweaks before we begin our Drupal project:

  • The file example.sites.php should be renamed to sites.php and the folders that each of the example domains w
    ill point to must be added inside.

Drupal With Lando | Appic Softwares

Drupal With Lando | Appic Softwares

  • Make the folders with the names that match the domain names you specified in the configuration file. The folder names must match the names you entered in the sites.php file from the previous image and the lando configuration file.

Drupal With Lando | Appic Softwares

  • Configuration files can be added to many sites. Two files are necessary for every Drupal installation to be configured: the files folder, which contains all of the files, images, cache, and other data, and the settings.php file, which defines all of the database access information. As a result, you will need to duplicate the model from the default.settings.php file located inside the sites/default folder and rename it to settings.php inside each of your multi-site folders. Within each folder, you will next create a files folder.

Drupal With Lando | Appic Softwares

  • Allow the /files and settings.php directories to exist after each site folder has been created.
chmod a+w settings.php
chmod a+w files
  • We can now begin installing each of our Drupal Multi-sites since we have all the required files. To prevent any surprises, we should run the following tasks in this order:
lando start
lando composer install
lando rebuild
lando info
  • We will make sure that Lando boots properly by using the configuration we have specified in the.lando.yml configuration file with the “lando start” command.
  • Since there will be missing main folders like Vendor in the files, the command “lando composer install” will begin downloading the remaining dependencies needed to install our Drupal.
  • The command “lando rebuild” examines the application in general. After the Composer has finished downloading the files, the command should display the various URLs that are accessible for each of the several sites on the screen.

Drupal With Lando | Appic Softwares

  • You will be directed to the Drupal install page when you click on any of the aforementioned site URLs.

Drupal With Lando | Appic Softwares

Create Multi-Site In Drupal With Lando | Appic Softwares

  • We may verify database access information, including user names and passwords, with the use of the “Lando info” command.
  • After completing the previous instructions, we can start installing each multi-site by writing the corresponding domain that we have specified in the lando configuration file and verifying by running the “Lando info” command. Recall that the database server’s local host must be changed to the one that shows in the terminal if you install Drupal via Lando.

Create Multi-Site In Drupal With Lando | Appic Softwares

  • Your multi-site installation is now complete. You can use the following to access databases across several sites:
  • Here, after Lando starts, the site URL created above is accepted by -uri. You can now continue working on your many sites and access their database.

Create Multi-Site In Drupal With Lando | Appic Softwares

Conclusion

We hope that through this post you were able to learn how to integrate Drupal with Lando, Moreover, if you are looking to hire dedicated Drupal developers who can assist you in managing your development, then you should check out Appic Softwares.

We have experienced and pre-vetted Drupal developers who will assist you with its development and maintenance.

So, what are you waiting for? Hire us now!

This blog has been inspired by <https://www.specbee.com/blogs/getting-started-with-lando-and-drupal-9>

Get Free Consultation Now!

Fill out the form below to get started.

Phone

Related Articles

How Much Does It Cost to Develop a Generative AI App In USA?
2/12/2026

How Much Does It Cost to Develop a Generative AI App In USA?

Artificial intelligence is transforming how modern businesses works. To automate processes and deliver personalized experiences for customers, companies from all angles are turning toward intelligent technology solutions. The Generative AI app allows businesses to develop content that changes over time, spot patterns and make predictions about customer behavior. The United States is currently leading the […]

Read More
How to Choose the Right AI Consulting Company in the US
2/10/2026

How to Choose the Right AI Consulting Company in the US

Today, companies are being transformed because of Artificial Intelligence. Every company is using tools such as automation, analytics, and machine learning to improve their efficiency and enhance customer engagement. However, success will largely depend on finding the right AI development partner to work with. A large number of organizations are investing in artificial intelligence; however, […]

Read More
Telemedicine App Development: Features, Compliance & Cost Breakdown
2/5/2026

Telemedicine App Development: Features, Compliance & Cost Breakdown

More than ever before, the healthcare system is going through rapid change and patients expect to receive healthcare quickly, easily and from a convenient location. As a result, telemedicine applications have seen increased demand and they are receiving huge amounts of investment from numerous healthcare organisations. Telemedicine allows healthcare providers to consult with patients about […]

Read More

Our Drupal Services

Mobile App Development →AI Development Services →Web Development →E-Commerce Development →

Share Your Ideas Here!

We are all ears!

Get in touch with us

  • Contact info type iconsales@appicsoftwares.com
  • Contact info type icon
    +91 - 8233801424,+91 - 9887354080
  • Contact info type iconlive:appicsoftwares
  • Contact info type icon41/11 Varun Path, New Sanganer Road, Jaipur, Rajasthan
  • Follow Us

Your Partner Everywhere!

Appic Softwares Jaipur office illustration

India

41/11 Varun Path, New Sanganer Road, Jaipur, Rajasthan

Appic Softwares USA office illustration

USA

5 Cowboys Way, Suite 300, Frisco, TX 75034, USA

Appic Softwares Germany office illustration

Germany

Magdalenenstraße 34, 80638 München, Germany

About

  • Our company
  • Blog
  • Portfolio
  • Let's connect
  • Career

Services

  • iOS App Development
  • Android App Development
  • Software Development
  • Flutter App Development
  • Mobile App Development
  • Ionic development
  • Maintenance & Support

Portfolio

  • Bridl
  • Obdoor
  • Laiqa
  • Rocca Box
  • Plantify
  • City of Cars
  • No-limit-Qr
  • Sync Remote

Platform

  • Artificial Intelligence
  • Blockchain
  • IOT
  • MVP
  • Angular
  • PWA
  • Devops
  • Drupal

Industries

  • Restaurant
  • Healthcare
  • Real estate
  • On-demand
  • Travel
  • Education
  • Fitness
  • Pet Care

Recognized For Excellence

GoodFirms Award
TopDevelopers.co Award
Clutch Leader Award
DesignRush Award
SelectedFirms Award

© 2026 Appic Softwares. All Rights Reserved. |Privacy Policy