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-001 - Drupal core - Multiple vulnerabilities
  • SA-CORE-2009-009 - Drupal Core - Cross site scripting
more

Contrib security advisories

  • SA-CONTRIB-2010-026 - Monthly Archive by Node Type - Access Bypass
  • SA-CONTRIB-2010-025 - TinyMCE - Cross Site Scripting (XSS)
  • SA-CONTRIB-2010-024 - eTracker - Cross Site Scripting
  • SA-CONTRIB-2010-023 - Workflow - Cross Site Scripting
  • SA-CONTRIB-2010-022 - Internationalization - Arbitrary code execution
more

Drupal.org jobs feed

  • Drupal Themer | Canary Promotion + Design
  • Drupal Site Builder | Canary Promotion + Design
  • Web Designer | Canary Promotion + Design
  • owner | schwarz production
  • Drupal freelancing Opportunities on 8KMiles | 8KMiles.com
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

« March 2010 »
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
28293031

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