302 CHAPTER 10 SECURING AND MAINTAINING PHPBB Running the Upgrade Script After the upload has completed, you need to take one more step. Go to the following URL (substituting yourdomain.com and your_phpBB_path accordingly): http:////install/update_to_latest.php This script performs any changes necessary to the database and updates a database field with the latest version. This allows the reporting tool in the Administration panel to report accurate version information. After the script has run, which usually takes no longer than a few seconds, reenter your FTP program and delete the installand contrib folders, as you no longer need them. Congratulations, your upgrade is complete! Now is a good time to test your board and make sure that everything is working as anticipated, especially if modifications are involved. If you run into problems, make sure you didn t miss uploading any files or incorrectly edit one of them when reinstalling modifications. If you ve verified your installation instructions for a modification and it still isn t working, you may wish to remove it temporarily and get in touch with the author of the fix and see if there are any incompatibilities. Upgrading with the Patch File Only Package Installing upgrades to heavily modified phpBB installations can be a royal pain in the neck. You must manually go through each file and remodify it, making sure that nothing new is broken in the process. It gets to be a very tedious process after a while, and the possibility of human error is great. If you have one of these boards and need to perform upgrades to it, lack patience, and have access to a UNIX command line, you can use the patch file only package provided by the phpBB Group to quickly upgrade your board, thanks to the patch utility. The first step is, as always, to back up a current copy of the board software to a safe place, in the event the patch utility does not work as planned. The phpBB Group recommends that you have a copy of the changed files only package handy, in the event the patch upgrade fails in spots (a rare occurrence). Next, create a separate folder to hold your files, and extract the contents of the /install directory there. You ll also extract the .patchfile that corresponds with your current version of phpBB. Extract the .patch file to the folder you specify, and then run the following command at the command line: patch -cl -d
-p1 < 2.0.x_to_2.0.y.patch where xrepresents the current revision of phpBB you are running, and y is the latest release of phpBB you are patching. With any luck, you ll get through the patching process without problems. If a file fails to patch, extract its corresponding file from the changed files only package and copy over it. In this scenario, unfortunately, you will need to reapply modifications to the file manually. After running patch, visit this URL: http:////install/update_to_latest.php This will verify the database for the new version of the software. Test your board thoroughly, especially in places where modifications were made. With any luck, you will be up and running without any problems.
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.
This entry was posted
on Thursday, September 27th, 2007 at 12:52 pm and is filed under MySQL5.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.