Home

drupal.ls.net

Navigation

  • About
  • Blogs
  • Contact
  • Forums
  • Image galleries
  • Log in
  • Feed aggregator
Home Blogs webmaster's blog
    • Drupal
    • LSNet

Core security advisories

  • SA-CORE-2010-002 - Drupal core - Multiple vulnerabilities
more

Contrib security advisories

  • SA-CONTRIB-2010-089 - Simplenews Content Selection - Cross Site Scripting
  • SA-CONTRIB-2010-088 - Content Construction Kit (CCK) - Access Bypass
  • SA-CONTRIB-2010-087 - GovDelivery - Cross site scripting
  • SA-CONTRIB-2010-086 - Prepopulate - Access Bypass
  • SA-CONTRIB-2010-085 - Pathauto - Cross Site Scripting
more

Drupal security announcements

  • PSA-2010-002 - Views - Administer views permission
  • PSA-2010-001: Policy on release versions and permissions
more

Drupal.org jobs feed

  • Marketing Website Developer | Western Governors University
  • Coder | Fidoli Bilişim Teknolojileri
  • Drupal developer | ubergig
  • Javascript developer | ubergig
  • Web Developer | MIT
more

Visit our client's websites

  • http://bridle-creek.com
  • http://demo.mydllurth.com
  • http://downtowngalax.com
  • http://drupal.ls.net
  • http://crossleft.org/
  • http://cuttingedgelaw.com/
  • http://new-river.dixongarner.com/
  • http://import.mydllurth.com
  • http://lyceum.mydllurth.com
  • http://mtvaleumc.org
  • http://news.mydllurth.com
  • http://oldcranks.com
  • http://psychguides.com
  • http://starbuck.net
  • http://stewartfurniture.com
  • http://tarvid.org
  • http://ubercart.ls.net
  • http://wolfeservices.net

Events

« September 2010
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
2627282930

Drupal upgrades

Submitted by webmaster on Fri, 12/18/2009 - 09:48

The release of 6.15 and 5.21 prompted a review of local Drupal sites. We have a collection of 44, many experimental, some customer evaluations and a few "productive" sites. Fortunately, all our sites have a similar file structure and we can obtain a status report of all Drupal code with a few lines of code.

#!/bin/bash
for i in `find /home/*/public_html/*/ -maxdepth 1 -name CHANGELOG.txt`
do
VERSION=`sed -n '3p' $i`
echo $i,"-",$VERSION
done

Also fortunate, all local files are in the "sites" directory tree. We downloaded and expanded the new versions from http://drupal.org in our "root" directory and immediately move "settings.php" out of the way in the 5.21 tree. Then in the "root" directory of each site and as the "user" who "owns" that part of the file system, we copy over the new code.

cp -a /root/drupal-6.15/* .

We use "drush" to update contributed modules and the database from the directory "sites/all/modules.".

drush update

Next we visit each site and obtain a status report. In a few cases "cron.php" was stale and we examined the crontabs.

crontab -e

A few were missing and hastily added.

# m h  dom mon dow   command
0 5 * * * wget -O - -q -t 1 http://example.net/cron.php

Not all could be updated from "status report" and we ran those manually.

wget -O - -q -t 1 http://example.net/cron.php

A quick look at the home page of each site and a small sample of links assured basic functionality. We found a few "permission" problems which were fixed with a combination of "chown" and "chmod" and in two cases - database "privileges" using "phpmyadmin".

Any public facing website is vulnerable to attack; at least we can offer the defense that all our Drupal code is up to date. (With one exception, "atrium" has not updated their version but I would expect a new release in the next few days).

  • webmaster's blog
  • Login or register to post comments
  • Printer-friendly version
  • Send to friend
  • PDF version
  • Delicious
  • Digg
  • StumbleUpon
  • Facebook
  • Google
  • Technorati

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Powered by Drupal, an open source content management system
RoopleTheme