You are here

Drupal tips

Command line Drupal install and update script for multi-site hosting

Maintaining a Drupal site, or a collection of sites is much easier if everything is kept completely separate--Drupal core, contributed modules, and the site itself.
This is even more important if multiple sites are hosted on the same server. Drupal's own multi-site support can be a nightmare to maintain, believe me! (e.g. when you want to upgrade modules or core).
A must simpler and easily supported configuration is to keep everything separate and to use symbolic links to tie it all together. For example, I keep:


Technical Notes

These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category.

The following module is missing from the file system

If you are getting the error message:


Upgrading CentOS 6 to PHP 5.4 (or 5.5)

  • SCL is the way to go since it has RedHat’s blessing

Note that it is the .conf file that controls which version of php is used. For some reason this does not seem to be available for php55. It is possible that anther package needs to be installed, containing

Add mobile theme to Drupal site

This method will allow mobile users to be redirected to another url which shows a site based on the same database but with a different theme.


Installing Foundation on a bare Ubuntu 14.04 system

Purpose of tools and their dependencies

  • Bower
    • Function: to keep web assets up to date
      • Updates local versions of CSS, JS and HTML (i.e. Foundation) from Git repo
    • Dependencies:
      • installed with npm
      • which depends on node.js
      • requires Git to operate
    • Drupal zurb_foundation usage

Installing Drupal on Ubuntu 16.04

  • Install LAMP stack
apt -y install openssh-server
apt -y install tasksel
tasksel install lamp-server
  • Some basic stuff

Webform formatting

As I wrote…omment-9134347

Webform descriptions can be made to take any tags using:



So far CloudFlare has proved to be an excellent service. It is very useful for providing extra safety for old Drupal 5 sites that have not yet been upgraded.


JavaScript MVC Frameworks

A new way of creating a website is using what is sometimes called a “headless” site, with the front end being served by an MVC framework (Model View Controller).

Headless Drupal means using Drupal purely for content creation and management and feeding all the data in JSON format to a JavaScript front end.



Subscribe to RSS - Drupal tips