Rev 831 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
Preliminary Upgrade-Instructions================================This document describes the Phorum upgrading process. Please keep in mind,that these instructions are neither complete, nor final. If you findproblems in upgrading which are not described here or if you haveuseful additions, please let us know.Table of contents:1. Upgrading from a Phorum5 version to another Phorum5 version1.1 Upgrading the database1.1.1 Preparations1.1.2 From a webbrowser1.1.3 From a system console1.2 Upgrading templates and hacks2. Upgrading from Phorum 3.4.x to Phorum51. Upgrading from a Phorum5 version to another Phorum5 version-------------------------------------------------------------------------------1.1 Upgrading the database--------------------------1.1.1 Preparations-----------------------The upgrading process will preserve all of your active settings andmodules, but will overwrite hacks and any changes made to the defaulttemplate (in the directory {phorum dir}/templates/default). Othertemplates will be kept intact.Here are the steps for upgrading:- Backup your existing Phorum5 installation.Before doing an upgrade, it is always wise to make a good backupof your running system. Make a backup your Phorum install directoryand the database in which your Phorum tables are stored;- Download a newer Phorum5 package;- Extract the files and put them on top of the current installation;- Keep the database settings from {phorum dir}/include/db/config.phpthe same;Now you can choose whether you want to upgrade from a webbrowser orfrom a console.1.1.2 From a webbrowser-----------------------Open your forum using your webbrowser. In case a database upgradeis needed, you will be prompted to go to the admin page. In that caseopen the {phorum url}/admin.php page, which will guide you throughthe upgrade.1.1.3 From a system console---------------------------In the scripts directory of your Phorum installation, you will findthe script "console_upgrade.php". Go to the scripts directory andexecute the script from there. On most systems, you can do this usingthe following command:# php console_upgrade.phpIf you want to run this script from a different locations, then editthe script and update the $PHORUM_DIRECTORY variable to match thelocation of your Phorum installation.1.2 Upgrading templates and hacks---------------------------------For minor upgrades, the Phorum team has the policy that templatesshould not change. For example, if you are upgrading version 5.1.1to 5.1.2, you can simply keep the old templates.Template functionality might change between major Phorum releases.For example, templates that were made for Phorum 5.0.x are notcompatible with the templates for Phorum 5.1.x. So to upgrade these,you'll have to build new templates, based on the new default templatethat is included in the distribution. Simply copying the old templatewill most probably result in errors and missing functionality.If you are doing a minor upgrade and you have to preserve changes thatwere made to the default template (which is not the recommended wayof customizing Phorum, see creating_templates.txt), you can follow oneof the following options:- Extract the new Phorum distribution to its own directory and reapplyyour changes before putting it over the existing installation;- Create a backup of your existing installation. Install the newdistribution on top of the old one and reapply the changes tothe new version while it is "live".2. Upgrading from Phorum 3.4.x to Phorum5-------------------------------------------------------------------------------- Download and unpack the Phorum5 package;- Follow the installation instructions in docs/install.txt. InstallPhorum5 is a new directory.- Convert the old forum data:In the scripts directory of your Phorum5 distribution, you will finda script named phorum3to5convert.php. Instructions for using thisscript can be found at the top of this script itself. The script willconvert your old forum to Phorum5. Everything, but permission levels,is converted.- Update the posted message counters for the users:In the scripts directory, you will also find a script named"update_postcount.php". This script can be used to update the numberof posts for users to the right value. So if you want correct numbersto show up in the user profiles, just run this script once AFTER theconversion has been completed. To run it, you will have to copy itover to the main Phorum5 directory. After that you can either runit from the command line or by opening it from your webbrowser. Seealso the instructions in the script itself.