Web Hosting Forum | Lunarpages

Author Topic: HOWTO: Upgrade your phpBB to 2.0.11  (Read 13390 times)

Offline Ryan

  • Spacescooter Operator
  • *****
  • Posts: 47
HOWTO: Upgrade your phpBB to 2.0.11
« on: December 21, 2004, 08:32:42 PM »
« Last Edit: July 15, 2005, 02:52:16 PM by Jay »
Best Regards, Ryan
System Adminitrator
support@lunarpages.com
Phone: 1-877-LUNARPAGES (Toll-free)
Phone: 1-714-521-8150 (International

Offline Jay

  • MR-Disabled
  • Über Jedi
  • *
  • Posts: 1555
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #1 on: December 22, 2004, 08:00:22 AM »
Thanks Ryan Much appreciated..

- Jay

Offline JamesG

  • Web Designer UK
  • Berserker Poster
  • *****
  • Posts: 11732
  • Web Designer
    • Affordable Web Design
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #2 on: December 22, 2004, 08:02:38 AM »
For people who have had their forums hacked, this thread may be useful:

http://www.lunarforums.com/forum/viewtopic.php?t=22727&highlight=

or at least I hope it is :thumb:

Just as a side note:
This thread is not for people who have been hacked, as a lot more files could have been changed than the ones in the files that can be donwloaded in the link Ryan provided.

if your forum has not yet been hacked, please upgrade your forum using the procedures mentioned by Ryan as soon as possible, if you havent got time to do this, then close your forum altogether until you do, otherwise you will have to spend a lot more time fixing your forum.

Offline Jay

  • MR-Disabled
  • Über Jedi
  • *
  • Posts: 1555
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #3 on: December 22, 2004, 08:04:33 AM »
Thanks Garvey.

- Jay

Offline WhatTheFawk

  • Newbie
  • *
  • Posts: 3
    • http://www.whatthefawk.com
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #4 on: December 22, 2004, 09:44:42 AM »
How do you apply the patch file instead so we dont have to reinstall all our mods. Ive downloaded the patch file, and uploaded it to the server, but everytime I use the patch command it gives me the error.

/bin/sh: line 1: phpBB-2.0.10_to_2.0.11.patch: No such file or directory

I used this

patch -cl -d /forum/ -p1 < phpBB-2.0.10_to_2.0.11.patch

I'm pretty sure I'm putting the path in wrong, but I dont know the FULL path to get to my site like username/homedir/public_html/forum or whatever it is. Anyone got any suggestions? Because everytime I re-upload my site the worm finds it within 10 minutes.  :|  

I'd just like to do this without having to reinstall a bunch of mods, and images and templates.

Offline JamesG

  • Web Designer UK
  • Berserker Poster
  • *****
  • Posts: 11732
  • Web Designer
    • Affordable Web Design
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #5 on: December 22, 2004, 10:06:16 AM »
if the worm is finding your site that quick, i'd recommend searching your file manger (in control panel) for any out of the ordinary files.

Offline pimhof

  • Newbie
  • *
  • Posts: 3
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #6 on: December 22, 2004, 10:11:29 AM »
I want to use the patch procedure also, but am confused about using patch>

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11607
    • Thu Tu's Blog
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #7 on: December 22, 2004, 10:12:23 AM »
Try using a diff app, like WinMerge. Compare the differences between your files and the unchanged files from the same version. So if your modded version was 2.0.6, e.g., compare it to an unmodded 2.0.6. I don't know if it is obvious but one wouldn't want to compare a modded 2.0.6 to 2.0.11 because there will be differences that have nothing to do with the mods. Once you find the differences, apply them to the 2.0.11 version opened in another window.

WinMerge can also go through a directory and search for different files, so you don't have to hunt through your files to see which one was modified.
:whip: :love: :whip: :love: :whip: :love:

Offline WhatTheFawk

  • Newbie
  • *
  • Posts: 3
    • http://www.whatthefawk.com
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #8 on: December 22, 2004, 11:00:17 AM »
Update12.23.04: I never go this command to work even with the correct path file, but I have heard of ONE other person getting it to work, that's it.

I don't think there are any out of the ordinary files. I didn't have the updated version of phpbb thats how the worm got back around to me.

I just need to know the correct syntax for this command.

patch -cl -d /forum/ -p1 < phpBB-2.0.10_to_2.0.11.patch

the /forum/ part is wrong.

If all else fails ill just reinstall the mods and everything, but I JUST did that a few weeks ago. I know the patch will apply without editing any of the mods so I really just need the full path to get to public_html/forum/ so I can apply that patch.

That's it, I'll probably end up going through each file and applying the changes but thats just as bad as reinstalling all the mods templates and images so the patch is my best bet at this point.

Here are the instructions I just need to know what to put in [phpbb directory]:

"A number of patch files are provided to allow you to upgrade from previous stable releases. Select the correct patch, e.g. if your current version is 2.0.10 you need the phpBB-2.0.10_to_2.0.11.patch. Place the correct patch in the parent directory containing the phpBB 2 core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: patch -cl -d [PHPBB DIRECTORY] -p1 < [PATCH NAME] (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB2, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments."

Offline donmac

  • Trekkie
  • **
  • Posts: 16
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #9 on: December 23, 2004, 09:03:46 AM »
Note that if you installed your forum in directory FOO, the command would be:

http://www.domain.com/FOO/install/update_to_211.php

While this may be obvious, it tripped me up for a little while.  (I'll blame it on the flu)

-donmac

Offline WhatTheFawk

  • Newbie
  • *
  • Posts: 3
    • http://www.whatthefawk.com
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #10 on: December 23, 2004, 09:38:34 AM »
Hey I got this to work without reinstalling mods using Thu's suggestion,  WinMerge2.2.0, it takes a bit of getting used to, but im glad I have the program now. Here's what I did, and I'm going from 2.0.10 to 2.0.11

I d/l the changed files, then unziped the correct version (2.0.10 to 2.0.11) to a directory called "Changed Files"

Then I went on my server and got my files from the same directories and put them in a folder called "Files" make sure the structure is the same, like the file in the admin folder should be the same in both folders.

Example using admin_board.php:

Changed Files/admin/admin_board.php
Files/admin/admin_board.php

Basically, make it so they are identical directories, in seperate folders.

Then I ran WinMerge and went to File>Open

For "Left" click browse and select your Files\ folder.

For "Right" click browse and select your Changed Files\ folder.

Click Ok, it'll bring up a list of all the files. Saying there all different etc. Now the fun begins. Double click one of the files, starting at the top.

It will put the two files on two seperate sides of the screen. So you can see what's changed.  Alt+Down or clicking Next Diff, will take you to the next difference in the file, then you can go through the line and see what has changed. Copy your mod changes from the left (files/) to the right (changed files/).

This gets hard when you have a mod that changes things IN a line not a whole line. Fourtunatly I found a button for this too, once I was done... It's the Diff in current line   button, to the right of the Next Diff button or just hit F4.

Now do that through all your files, it helps to know php if your using this method because somethings should not be copied over and it can get hard to tell at times, but If I fumbled through it and got it to work im sure someone else out there can so I hope this helps a little.  

I might make a tutorial for this later with images, that might help a lot more. And don't forget to give thanks to Thu for the suggestion.

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11607
    • Thu Tu's Blog
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #11 on: December 23, 2004, 11:32:19 AM »
You're welcome, WhatTheFawk. :) I'm glad the suggestion helped, and thank you so much for providing the detailed instructions. :thumb:

Plus, I must thank our PHP guru ( Nibbler) for the suggestion back when I was lamenting losing my coppermine mods due to upgrading.
:whip: :love: :whip: :love: :whip: :love:

Offline rr2000

  • Space Explorer
  • ***
  • Posts: 6
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #12 on: December 27, 2004, 12:14:27 AM »
I found this MOD for upgrading from 2.0.10 to 2.0.11 (for those who cannot do complete reinstall):

http://www.phpbb.com/phpBB/viewtopic.php?t=240611

AG

  • Guest
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #13 on: December 28, 2004, 09:59:12 AM »
I'm sorry to say, and while I appreciate the work and time put here by some of you about this issue, I find these explanations rather confusing.

First, there's an initial process described, which is then aparently to be used ONLY with forums that have been hacked. How would somebody know if it was or not? Our site was aparently hacked around the time this issue arised [we found a "root" page instead of the normal index, if this was a "hacked" site as described here?] and proceeded to reinstall our site and applied a patch to the forum as instructed initially by LP. This patch didn't upgrade the forum, but just replaced a few words in the code in a certain page. Since then, we didn't have any issues with the forum or the site.

The instructions provided above [BTW, the link provided doesn't work anymore!], are refering to some files that are upgrading the 2.0.x install to 2.0.11. Since I couldn't use the link provided, I went through the phpBB site and downloaded the files for upgrading to 2.0.11.
These contain apparently more files than described in this thread, including the 2.0.x .zips for different upgrades. These .zips, when opened, have a bunch of php files that do not corespond to any directory structure as found in the forum backup!

Further, in the control panel, there's an option to upgrade to the 2.0.11 forum from the "bulletin board" link. Does anybody know if this is functional, and how to use it? When I click on the "upgrade" button it asks for a directory for the install, however there's no field provided to insert this directory. There's one under the "install" option, but that would probably install a new forum, losing the existing database.

Is there a way to do a "clean" install, just overwriting everything, install a new forum, then reinstall the current Db and mods?

Sorry about the long message and lots of questions, some of us are not programmers or very familiar with these issues.
Thank you,

Offline Jay

  • MR-Disabled
  • Über Jedi
  • *
  • Posts: 1555
HOWTO: Upgrade your phpBB to 2.0.11
« Reply #14 on: December 29, 2004, 10:30:55 AM »
Hi AG,

The link is working for me, doesn't give any errors.

There is another forum post here:

http://www.lunarforums.com/forum/viewtopic.php?p=176200#176200

and here:

http://www.lunarforums.com/forum/viewtopic.php?t=16952

These should both help you setup.

- Jay

 

Share |