How to Set up a Local Drupal Website With Lando

Nevin Katz
CodeX
Published in
9 min readDec 19, 2021

--

Image created by pikisuperstarwww.freepik.com. Logos from drupal.org and lando.dev.

Why Drupal?

When I first heard of this open-source content management system, Drupal was a mystery to me. And I have often seen the blank stares at the mere mention of its name, which often confounds people when they first hear of it.

Nevertheless, the Drupal CMS, written in PHP, can be a great choice for building database-driven websites. Its modules, themes, and customization options make it infinitely extensible, and while developers are usually needed for system updates, site styles, and custom work, its community-supported modules and graphic user interface makes it easy for others to add content — and even configure aspects such as layout, languages, navigation, and site architecture — without the need for coding.

Local Setups

When I started building websites with Drupal, one of the most challenging aspects for me was setting up a local Drupal environment. Because Drupal uses a database, you cannot just create static files and open them in a browser — you need a local server that runs on PHP and MySQL. Once set up properly, a local Drupal installation will run as if it were a live site, and you can then use Git or another versioning tool to push it up to a remote repository. (You can also use SFTP to push it up to a remote server, though I highly recommend a…

--

--

Nevin Katz
CodeX
Writer for

Developer at EDC. I write about web development and biology. Subscribe at https://buttondown.email/nevkatz for article roundups.