As a follow up to my posting about the my Drupal script library, I thought I'd write a bit about the installation techniques I've been using for Drupal installs.
As described in the script README file (and practiced by the drupalCVSDeploy.sh script), I create and maintain a particular installation system w/ all my Drupal site installations.
Maintaining one installation provides several wins and very few disadvantages.
Advantages:
Disadvantages:
Makes installations easy. Makes it easy to see what you did should you ever (accidentally or on purpose) modify a core or contrib file. The drupalCVSDeploy.sh script makes it trivial to maintain a site installed this way. Why wouldn't you do it? The .htaccess file that is installed w/ Drupal disallows access to the CVS directories, so you can go ahead and use it for a external / production site.
As I describe in the README file, I put a site's modules, themes, and files directories under the installation's 'sites' directory. This makes the site much easier to back up and ultimately more portable. A Drupal site's state is defined by the database contents, any installed modules and themes, and the contents of the file upload directory. Putting all of these (except the database of course) makes things more straight-forward.
Furthermore, my scripts provide for the generation of backup files placed in a 'backups' directory under the installation's 'sites' directory. This allows backups to just process this single directory tree (and removing the need to backup the multiple copies of Drupal).
Comments
What were they thinking?
Probably seemed good at the time.
I can think of a few edge cases that a multisite installation might be a good idea -- they mostly revolve around cases where mods to the Drupal core files are shared among all sites; but in general, I do think that it's a ungood idea.
I'll give the Drupal devs a break tho -- we have the benefit of hindsite here. At the time I'm sure it seemed like a good idea. It sure seemed like a good idea when I was setting up my first group of sites. It was only afterwards that I began to notice what a pain it was.