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: - Free Resources for Websites exists as a place for me to document the things that I have learned while building dynamic websites and hosting platforms.

My business (designing Drupal websites) . Below are some of the sites that I have built:

Commercial websites

Websites for non-profits

Course Evaluation

20 basecamp alternatives for Project Management

  • Note that it is essential to see all the tasks to be done to complete a milestone. Some products, including basecamp, will not allow this but hide the tasks within lists

Drupal and PHP 5.3

There are some problems with running Drupal on php 5.3. There are five kinds of solutions:

  1. Downgrade to php 5.2.6 (not possible in many situations)
  2. modify Drupal to change the error level reporting
  3. find the latest patches to fix the problems
  4. hack Drupal core or contrib yourself to fix the errors (Drupal 6 is already compliant, but not D5)
  5. put a timezone in your php.ini to get rid of timezone errors

Drupal 6

2. Modify Drupal's error reporting --already done for Drupal 6

3. Find patches

How to chroot

Here is a good link on how to Recover a Non-booting Linux System

and the core:

ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt
ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt/boot
ubuntu@ubuntu:~$ sudo mount /dev/sda7 /mnt/home

Verify everything looks correct before proceeding (i.e. you got the partitions correct and mounted in the correct places).

Next, you need to take care of /proc and /dev as follows:

ubuntu@ubuntu:~$ sudo mount -t proc none /mnt/proc

Useful Subversion Links

Drupal 7 SEO resources

The most minimal way of doing an installation is using sassc, the C binding.

apt install git build-essential
cd /opt
git clone
git clone libsass/sassc
echo 'SASS_LIBSASS_PATH="/opt/libsass"' >> /etc/environment
source /etc/environment
echo $SASS_LIBSASS_PATH # Make sure it worked…
cd libsass/sassc
ln -sn /opt/libsass/sassc/bin/sassc /usr/local/bin/

sassc file.scss file.css # run like this

Misc Python Scripts

Here are some misc scripts.

Search Engine Optimization in Drupal 6

Drupal Modules

  • global redirect module
    • makes sure there is only one URL per page (gets rid of node/123 type URLs)
    • simply install—no configuration needed.
    • path_redirect module also needs to be used if you have old urls that you have changed but want to keep the old url address functioning
    • otherwise just make sure there are not multiple aliases for any pages using Site Building/URL aliases/list and sort on “system”
Syndicate content