MyBB Community Forums

Full Version: http2 and forum styling
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a forum setup on a dedicated server that I lease from a datacenter, and after installing the http2 Apache module the forum styling went wonky as if the css files were being ignored.  I tried deleting the theme folders in the cache directory and rebuilding, but no luck.

I have narrowed down the issue to the mod_mpm_itk and mod_mpm_prefork modules not working with http2 and requiring that a different mpm module be installed to work, and have tried both mod_mpm_event and mod_mpm_worker, but neither fix the issue.  I also tried installing mod_suexec, but that didn't help either.

I realize that most people here probably don't run their own web servers, and if I weren't hosting websites for a number of clients I wouldn't either, but I am hoping that someone with more knowledge than I might be able to tell me what needs to be done to get myBB working with http2.
Using http2 and mod_mpm_event successfully here.
What does browser tools / console show when loading?
Thanks for the quick response.  I just rebuilt Apache with http2 and mod_mpm_event,and tried to open the forum, and this is what is shown in the console pane:

[attachment=44134]

I hope this is what you're looking for.
IIRC, http2 requires https to work for web page accesses in web browsers. So, might it be that HTTPS for your site not working correctly, or have you re-configured the board URL for forum asset files to be accessible?
You do recall correctly, and yes the forum does have a working SSL and is configured for HTTPS, and it runs great in HTTPS as long as mod_mpm_itk and mod_mpm_prefork are installed. Oddly enough, I have another myBB forum running on a really old version of myBB and in PHP 5.6 on the same server that works fine with http2, but this one running the latest version doesn't.

I've also noticed that either http2 or the lack of mod_mpm_prefork and mod_mpm_itk messes with the formatting of a couple other websites on the server too, so I may just give up on it for now. Thanks for the help though!
Thanks to HLFadmin I was able to resolve this issue. I'm not exactly sure what it was exactly that did correct it, but what I ended up doing was to install a fresh copy of mybb into a different directory, then export and import the theme and templates from the old install into the new one, and the forum and forum_permission tables from the old database into the new database and then everything looked great.

Oddly enough, I then deleted the directory with the old install and the database, and renamed the new install directory to what they old had been, then changed all references to the directory in the /inc/settings.php and database, and it broke the styling again. So, I changed it all back to the new directory and all was good again.

I'll never know now, but I could have possibly saved myself a lot of time had I just renamed the original directory and changed the references in the settings.php and database, but what I have learned in 15 years of messing with websites and servers is that sometimes its just a darn gremlin, and its best to settle form what worked, than trying to figure out the why.