You are here

single codebase

Drupal 8: create a "files" directory in root

I've always found cumbersome and inefficient the default file system for drupal:

Drupal is flexible of course and you can put your files anywhere you like. I prefer to have my files in root, like this:


For this particular configuration you need to do the following.

1. Create a "files" directory in root (so that "files" sits alongside scripts, modules, sites, core, etc.)

Drupal 8: file setup for multisites, single codebase

I was unable to find a coherent explanation for running multiple Drupal 8 websites from a single codebase in a UNIX environment. Here are some notes I hope will be helpful.

1. Navigate to the “sites” folder in your root directory. Change the name of the file "examples.sites.php" to "sites.php". Edit sites.php to list your individual domain names as shown in the example below. You can have an unlimited number of domains drawing on the resources of a single codebase. Make sure to remove the * before each line.

Subscribe to RSS - single codebase