Updating phpBB3

By Dan Birlew | Posted January 13, 2009 in Tech | 5 Comments »

phpBB is a free, open source forum software that allows users to interact at a website. The code is module-based, supposedly for easier updates. However, as one comes to expect from open source:

phpBB Module Development

Snarky? Oh yeah, we’ve got plenty today. For the third time, I had to completely reinstall the forums here at my site thanks to phpbb.com’s automatic update download. The default phpbb admin control panel contains code that notifies you if a newer version of the software is available. Thanks to my last all-consuming project, three updates were released while I was busy. So my version was 3.0.1 while the latest version is 3.0.4. And if you check out phpbb.com’s download page, you’ll see my first problem: there is no automatic update that converts 3.0.1 into 3.0.4. So after hours of searching the community forums over there, I finally found a link to past updates at SourceForge. There I found an archive that updates 3.0.1 to 3.0.2. Since phpbb.com boasted a file that updates 3.0.2 to 3.0.4, I realized 1) the update had to be accomplished in steps, and 2) it was going to be a long night.

So I upgraded 3.0.1 to 3.0.2. And apart from some ftp problems that are my server’s fault, that went pretty smoothly. Then deleted those files and uploaded the 3.0.2-3.0.4 package. And that’s when the crying began. This package was much larger in filesize, and took longer to push online. And when it was all through, I navigated to the install page only to find the following message highlighted in red:

“The update files found are incompatible with your installed version. Your installed version is 3.0.2 and the update file is for updating phpBB 3.0.2 to 3.0.3.”

Can you spot the redundancy in the statement above? The first one to post it in a comment gets a free, signed copy of my next strategy guide releasing January 20th. (Be sure to leave a valid e-mail so we can trade info.)

To continue, I gritted my teeth and prepared for an even longer night. By this point, it was 2am PST, and my wife was griping at me to come to bed. I figured the solution was to remove the 3.0.2-3.0.4 update, head back to SourceForge, and grab the 3.0.2-3.0.3 and 3.0.3-3.0.4 updates. Forty-five minutes later, I was finished uploading the former package and directed my browser to the install page. Much to my enamel-crushing rage, I received the same message posted above. How could an upgrade module not realize that it was ready to upgrade the software it was designed to upgrade?

So what’s the solution? Here’s a new, headache-free way to update phpbb forums. I’m posting this solution here for posterity, in the hopes that it helps others, and to remind myself next time the update alert goes off. Follow these easy steps to update your phpbb forums on the first try every time:

  1. Backup your database through the Maintenance tab in the admin control panel. Make sure to select all tables and create a text file on your computer.
  2. Ignore the admin panel’s advice to download the automatic upgrade. Instead, download the complete install package, usually available at http://www.phpbb.com/downloads/olympus.php
  3. Open an FTP window to your site (in Windows, open My Computer or Computer and type “ftp.yoursitenamehere.com” in the address bar) and navigate to /phpBB3/ or your forum directory.
  4. Download config.php to your computer.
  5. Download /images/ to your computer.
  6. If you customized your theme or uploaded one, download it to your computer out of /styles/
  7. Delete all forum files from your server.
  8. Upload all the files from the full install package.
  9. Upload the /images/ directory you backed up on your computer. Overwrite all files.
  10. Upload any custom themes you backed up.
  11. Upload and overwrite config.php.
  12. Open a browser and navigate to http://yoursitename.com/phpBB3_or_yourforumdirectory/install/database_update.php, and it will do the rest.
  13. Delete/rename the /install/ folder on your directory.

Tags: , , ,

DeliciousStumbleUponDiggTwitterMixxTechnoratiFacebookNews VineRedditLinkedInYahoo! BookmarksSphinn It!HyvesEmail

Related Posts:

5 Responses to “Updating phpBB3”

  1. Solo761 says:

    This made me worry a little. I’m in somewhat similar situation. Only difference is that my starting point is 3.0.2, but I used some mods (quick reply, welcome PM and Anti-bot mod) so I’m afraid what will it do to it. I doubt it’ll make trouble as in your case, redundancy issue :) , but I’m afraid that it’ll break itself on these mods :/.

  2. Dan says:

    Ah yes, phpBB mods! That’s a very good point… luckily with a very simple answer. With each upgrade of phpbb certain mods become incompatible or obsolete, even if only until the mod coder gets around to updating the files. Everytime I log in to the support forums at phpbb.com, one of the main problems is people trying to update without deactivating or removing their mods.

    Since the automatic update package doesn’t handle mods either, the best solution is to delete them along with all the rest of the files as I said in step 7 above, update your board, then reinstall your mods. Downloading the new phpbb package is a good time to check for updates to all your mods as well! Since most mods are cosmetic in nature and do not affect the database, there should be few problems with this.

  3. Solo761 says:

    Luckily I have apache/php and mysql also on my desktop, just for occasions and experiments like this :) . So for test run I made a backup of the real forum and restored it on my desktop PC. Upgrade went smoothly, and even mods were transferred and are still functional.

    I thought I would be forced to do clean install and then restore SQL database to newly installed 3.0.4. I would have to update database manually from 3.0.2 to 3.0.4, but it is the safest path to do it. I’ll probably try to update live forum today, I have backup of course, if it went smoothly once it doesn’t mean it’ll do so again :) .

  4. Solo761 says:

    Did the upgrade on live version of the forum and it didn’t went scareless as on local version. Of course, it’s the law, Murphy’s law. Everything passed smoothly, update was a succes, but ACP still said it was version 3.0.2 :) . I started upgrade process again, it passed quickly, it didn’t had to do anything since it was already updated, and said forum was up to date. I checked ACP again and this time it said 3.0.4. Maybe it takes few minutes for these changes to “take root”, since I doubt that running upgrade process for second time actually did anything. But it works, for now atleast, next time I’ll probably get “Your installed version is 3.0.4 and the update file is for updating phpBB 3.0.4 to 3.0.x.” :)

  5. Doug Daulton says:

    Just hold on for bbPress (bbpress.org). It promises to be a very, very good thing and it should import from PHPBB3. w00t!