<?xml version="1.0"?>
<item id="549">
  <title>upgrade-phpbb</title>
  <description>
  <p>Since I'm responsible for four different websites which run <a href="http://www.phpbb.com">phpBB</a>, upgrading due to <a href="http://secunia.com/search/?search=phpbb">security vulnerabilities</a> is a chore -- especially when the site has some local customizations which must be preserved.</p>

  <p>Because of this, I've written a shell script called <b>upgrade-phpbb</b> which automates the process.
    This script can be run from a unix system and updates a phpBB installation on a remote (unix) server.  You 
    need ssh/scp access to the remote server.  It detects and preserves modifications you have made to phpBB.

    In a nutshell, the script
    <ul>
    <li>copies two phpBB tarballs (which you must supply) to the server, one for the current (old) version and one 
    for the new version</li>
    <li>compares the contents of the old tarball to the installed php directory, and creates a patch file 
        containing modifications</li>
    <li>unpacks the new tarball and applies the patch</li>
    <li>copies over any binary files which diff could not handle (i.e. images)</li>
    <li>moves the old phpBB directory into your home directory (but leaves it untouched)</li>
    <li>runs the phpBB update_to_latest.php script via wget to upgrade the database</li>
    <li>removes the install and contrib directories to allow phpBB to run</li>
    </ul>
    </p>

    <p>It makes some checks along the way, and aborts if things are not as expected.  Even if
       it is successfull, it only moves the original directory and does not delete it.</p>

    <p><a href="/~jdhildeb/software/scripts/upgrade-phpbb-2005-04-07.tar.bz2">Download</a></p>
  
  </description>

  <category>Unix</category>
<pubDate seconds="1112934087.81">2005-04-07T23:21:27-07:00</pubDate><comment-count>810</comment-count><trackback-count>53</trackback-count></item>

