Installing Drupal 6 “upgrade save”
Drupal is upgrading very frequently. Specially nowadays as V6 is out for a view weeks. If you don’t want to get mad upgrading Drupal every other day - here are some hints to follow when installing Drupal6.
Most important: If you have more sites running on one server: Do a multisite installation!
Assuming you have your Apache root at /srv/htdocs do the following:
- Download Drupal 6.1 and tar xvzf it in /srv
- Now you have /srv/drupal-6.1
- Create a symlink like ln -s drupal-6.1 drupal
- Now you also have /srv/drupal (pointing to /srv/drupal-6.1)
- Now create a symlink for apache: I.e. ln -s /srv/drupal /srv/htdocs/drupalweb and let your virtual domain (or where ever Drupal will run) point to /srv/htdocs/drupalweb as httdocs root.
Your ready with your update-prepared ionstallation.
When an upgrade to Drupal 6.2 appears (it did view days ago), do the following:
- mysqldump your drupal database (just for security and possible rollbacks)
- copy cp -r -p /srv/drupal-6.1 /srv/drupal-6.2 the 6.1 to the new 6.2 installation (so you can rollback if necessary)
- in /srv/drupal-6.2 preserve your sites directory by renaming it, i.e. mv sites sites_old
- now, in /srv untar the 6.2 distribution tar xvzf drupal-6.2.tar.gz
- remove the new sites dir and move back your preserved: rm -r sites, mv sites_old sites
- now relink your master: rm /srv/drupal; ln -s drupal-6.2 drupal
- and browse to update.php of your site.
Keep in mind to check, if there’s something important new in settings.php…
And with this kind of installation you are perfectly prepared for multisite! And for sure it doesn’t work with MS scrappy OS’s.
And have fun!










August 21st, 2008 at 11:15 am
Hi Rainer, Just what I was looking for. Will let you know how the upgrade from 6.3 to 6.4 works. all the best. Mark
September 8th, 2008 at 8:36 am
Hi Mark, hope to find you well and your project advancing. Please tell me when it’s time to visit your new site!