Can I recover a board with just the database intact?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
TCGO
Registered User
Posts: 5
Joined: Tue Aug 13, 2024 3:15 am

Can I recover a board with just the database intact?

Post by TCGO »

Hello.
Our charity website was hacked and all that remains is the database. I believe the version was 2.8.3.

My knowledge is very basic. But we had a lot of information in the forums. Is it possible to restore the boards with only the database?

If it is possible could anyone point me to a tutorial on how to do it?

Any help/assitance would be greatly appreciated.

Thanks
Greg
V.P TruckersChristmasGroup.org
Last edited by Mick on Thu Aug 15, 2024 7:43 am, edited 1 time in total.
Reason: Solved.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26791
Joined: Fri Aug 29, 2008 9:49 am

Re: Can I recover a board with just the database intact?

Post by Mick »

Are you certain that’s a phpBB database you have as that version number never existed? I’ve also looked on your site and can’t find any evidence of a phpBB board only Wordpress. If you could post the correct link to where the board was that might help.

In answer to your question yes it is generally possible to recover a phpBB board from a good database.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 497
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: Can I recover a board with just the database intact?

Post by danieltj »

There is a link to a forum in your website's footer and I managed to use the Wayback Machine to see what was there. It returned one result in 2018 which clearly shows a phpBB 3 forum, although I’m not sure exactly what version.

You should be able to, as Mick says restore the forum from the database alone. Basically all you need to do is create a database in your hosting account and import the data using your database backup.

Download phpBB from the download section and then use the installer. You’d need to grab the files from the version the database relates to ideally as using a version that doesn’t match with your database backup will cause issues so if you can find out exactly what version you have that would help us help you further. One thing for sure is it definitely wasn’t version 2.8.
Last edited by danieltj on Tue Aug 13, 2024 7:54 am, edited 1 time in total.
Reason: Fixed some typos from originally posting via mobile.
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
User avatar
warmweer
Jr. Extension Validator
Posts: 11623
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Can I recover a board with just the database intact?

Post by warmweer »

danieltj wrote: Tue Aug 13, 2024 6:19 am You’d need to grab the files from the version the database relates to ...
In the database >>> table phpbb_config (that's assuming your table prefix = phpbb) >>> field: version
If you have a backup (files and database) check whether the prosilver version (.../styles/prosilver/style.cfg) is the same as the database version.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
TCGO
Registered User
Posts: 5
Joined: Tue Aug 13, 2024 3:15 am

Re: Can I recover a board with just the database intact?

Post by TCGO »

Image
Sorry my bad I believe it is 3.2.8

As for the style I’m 99.9% sure it was prosilver
User avatar
warmweer
Jr. Extension Validator
Posts: 11623
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Can I recover a board with just the database intact?

Post by warmweer »

To fully restore the board (version 3.2.8) you need to upload the latest backup of the board files, ... that includes any extensions you were using (see the phpbb_ext table) (the extension versions you were using).
Your config.php will have to be edited to reflect the database you used (or will be using).

There are a couple of things you'll probably still need to do to get the board up and running, but one thing at a time: do you have a backup of the files?
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 497
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: Can I recover a board with just the database intact?

Post by danieltj »

You can download phpBB 3.2.8 from the GitHub repository. I would advise that you also disable all of the extensions that you might have active from your database backup to prevent errors from appearing whilst trying to restore everything. All you need to do is once you've restored the database by importing it, you then need to look at the *_ext table where * is your database table name prefix. Usually that's phpbb_.

Change all of the extensions from a 1 in the ext_active column to 0.

That way it won't try and run the extensions that you might not have the files for. After that you can start to slowly turn them back on if you can find the correct versions that you were running for each of them. As long as your database backup is complete, it should be a fairly straight forward process to get your forum back online.
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
User avatar
GanstaZ
Registered User
Posts: 1210
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Can I recover a board with just the database intact?

Post by GanstaZ »

danieltj wrote: Tue Aug 13, 2024 7:59 am You can download phpBB 3.2.8 from the GitHub repository.
Why from github, if there is phpbb 3.2.x.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26791
Joined: Fri Aug 29, 2008 9:49 am

Re: Can I recover a board with just the database intact?

Post by Mick »

warmweer wrote: Tue Aug 13, 2024 7:44 amupload the latest backup of the board files
TCGO wrote: Tue Aug 13, 2024 3:37 amall that remains is the database
You may find this Knowledge Base - Rebuilding Your config.php File handy as well.

Once you’ve got your board up and running again you are urged to upgrade to the latest version as there’s no longer any support for 3.2.x.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 497
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: Can I recover a board with just the database intact?

Post by danieltj »

GanstaZ wrote: Tue Aug 13, 2024 10:00 am
danieltj wrote: Tue Aug 13, 2024 7:59 am You can download phpBB 3.2.8 from the GitHub repository.
Why from github, if there is phpbb 3.2.x.
I provided a direct download to the 3.2.8 zip from the GitHub repository.

Your link requires the OP to find the right version and then select from a long list of archives. It's just easier to use GitHub. Plus I always have it open anyway so it was much easier for me to find it.
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
User avatar
warmweer
Jr. Extension Validator
Posts: 11623
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Can I recover a board with just the database intact?

Post by warmweer »

danieltj wrote: Tue Aug 13, 2024 10:16 am
GanstaZ wrote: Tue Aug 13, 2024 10:00 am Why from github, if there is phpbb 3.2.x.
I provided a direct download to the 3.2.8 zip from the GitHub repository.

Your link requires the OP to find the right version and then select from a long list of archives. It's just easier to use GitHub. Plus I always have it open anyway so it was much easier for me to find it.
I have to agree with GanstaZ in this case.
the Github download/link does indeed contain the required 3.2.8 files but it contains a lot of extras which just aren't needed for a new member without any experience and may cause confusion.
+ the vendor directory is not where one would expect it to be (I can't find it in the github download).
The direct download contains all that is needed and nothing else, thus avoiding any possible mixups.

the direct link: https://download.phpbb.com/pub/release/3.2/3.2.8/phpBB-3.2.8.zip
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
janus_zonstraal
Registered User
Posts: 6572
Joined: Sat Aug 30, 2014 1:30 pm

Re: Can I recover a board with just the database intact?

Post by janus_zonstraal »

I think it is easier to use the latest files from phpbb (3.3.12) point the config.php to the database and do the database upgrade by going to www.yoursite.com/forum/install/
Sorry! My English is bat ;) !!!
User avatar
warmweer
Jr. Extension Validator
Posts: 11623
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Can I recover a board with just the database intact?

Post by warmweer »

janus_zonstraal wrote: Tue Aug 13, 2024 11:38 am I think it is easier to use the latest files from phpbb (3.3.12) point the config.php to the database and do the database upgrade by going to www.yoursite.com/forum/install/
True BUT there's possibly a style which needs a new version, same with extensions.
Basically the 3.2.8 should be in full working order before updating.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
janus_zonstraal
Registered User
Posts: 6572
Joined: Sat Aug 30, 2014 1:30 pm

Re: Can I recover a board with just the database intact?

Post by janus_zonstraal »

True BUT there's possibly a style which needs a new version, same with extensions.
Basically the 3.2.8 should be in full working order before updating.
If there is a style missing than that style or extension is also missing in 3.2.8.
So no difference.
Last edited by janus_zonstraal on Tue Aug 13, 2024 1:00 pm, edited 1 time in total.
Sorry! My English is bat ;) !!!
User avatar
warmweer
Jr. Extension Validator
Posts: 11623
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Can I recover a board with just the database intact?

Post by warmweer »

janus_zonstraal wrote: Tue Aug 13, 2024 12:12 pm
If there is a style missing than that style or extension is also missing in 3.2.8.
So no difference.
True, in a sense that it's possible ...
BUT ... the OP has little experience with phpBB ( a conclusion based on the opening question) in which case solving problems after the upgrade may be a lot more difficult than fixing the 3.2.8 and only then upgrading.

The question is/was: Can I recover a board with just the database intact?
The answer is YES: but it will require some investigation to establish what exactly needs to be done (a simple file replacement may not be sufficient).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.

Return to “[3.3.x] Support Forum”