How to Optimize phpBB for a Large User Base?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
ArdithGregory
Registered User
Posts: 8
Joined: Sat Sep 21, 2024 6:39 pm

How to Optimize phpBB for a Large User Base?

Post by ArdithGregory »

What are the best practices for optimizing a phpBB installation that serves a large community, in terms of server performance and database handling?
User avatar
Anișor
Translator
Posts: 330
Joined: Tue Jan 08, 2013 9:36 pm
Location: Arbroath, Angus, Scotland

Re: How to Optimize phpBB for a Large User Base?

Post by Anișor »

Vanilla phpBB is quite fast on its own.

What do you consider large?

My forum is currently at: 761739 posts, 105471 topics, 152207 members.
It works like a charm with a few extensions installed.
ArdithGregory
Registered User
Posts: 8
Joined: Sat Sep 21, 2024 6:39 pm

Re: How to Optimize phpBB for a Large User Base?

Post by ArdithGregory »

Anișor wrote: Sat Sep 21, 2024 7:07 pm .. with a few extensions installed.
WOW.. Like what?
User avatar
Anișor
Translator
Posts: 330
Joined: Tue Jan 08, 2013 9:36 pm
Location: Arbroath, Angus, Scotland

Re: How to Optimize phpBB for a Large User Base?

Post by Anișor »

ArdithGregory wrote: Sat Sep 21, 2024 8:04 pm
Anișor wrote: Sat Sep 21, 2024 7:07 pm .. with a few extensions installed.
WOW.. Like what?
Pages, mChat, TopFive (modified), Thanks for posts, Similar topics, some custom extensions made by me which are not loading the forum too heavily with a lot of queries.
You should be good as long as you don't install abandoned extensions or if you do, you should know how to handle them.
Since 3.1 phpBB's performance increased.
Of course, depends on what host you have as well.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6288
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: How to Optimize phpBB for a Large User Base?

Post by thecoalman »

If it's larger forum presumably it's VPS or better with root access. phpBB supports both OPcache and Memcached.

When I say support for OPcache you can use optimized OPcache configuration opcache.validate_timestamps=0 Once loaded into RAM scripts are never loaded from disk. phpBB will invalidate individual files as required, e.g. cache files. Purging the cache from ACP will also completely purge OPcache. The caveat is if you upgrade or any uploaded php script with same name you need to purge old one(s) from OPcache.

If you have memcached installed open config.php and find:

Code: Select all

 $acm_type = 'phpbb\\cache\\driver\\file';
Replace with:

Code: Select all

 $acm_type = 'phpbb\\cache\\driver\\memcached';
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26825
Joined: Fri Aug 29, 2008 9:49 am

Re: How to Optimize phpBB for a Large User Base?

Post by Mick »

Are you expecting a lot of users to sign up to the board or you think you might get a lot? In my view it’s far better to get the board up and running first and see what happens, you can always tweak things later if things change. So long as your server meets phpBBs requirements you should be good to go.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
exemplary1
Registered User
Posts: 191
Joined: Mon Feb 05, 2024 11:41 am

Re: How to Optimize phpBB for a Large User Base?

Post by exemplary1 »

Anișor wrote: Sat Sep 21, 2024 7:07 pm Vanilla phpBB is quite fast on its own.
What is Vanilla phpBB ?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6288
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: How to Optimize phpBB for a Large User Base?

Post by thecoalman »

It's an English expression when describing something plain, unaltered, nothing extra etc.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
exemplary1
Registered User
Posts: 191
Joined: Mon Feb 05, 2024 11:41 am

Re: How to Optimize phpBB for a Large User Base?

Post by exemplary1 »

Never knew that , lol.
Whiskerfish
Registered User
Posts: 31
Joined: Sun Jan 10, 2010 4:43 pm

Re: How to Optimize phpBB for a Large User Base?

Post by Whiskerfish »

My Board has been running since 04. I have 811,000 posts, 70,200 topics, almost 18,000 members and DB is over a Gig, never a hiccup on a VPS. Only issue I had was Bots slamming the bandwidth. They require constant management
User avatar
NeoDev
Registered User
Posts: 24
Joined: Mon Oct 18, 2021 9:52 pm
Name: Neo

Re: How to Optimize phpBB for a Large User Base?

Post by NeoDev »

For older forums you might consider running optimize table (defragments) and analyze table (improves indexing)
Come for the comics, stay for the bad fish puns.
— The Cross Time Cafe

Return to “[3.3.x] Support Forum”