Keyturns's picture

Is HTTP/2 support included and available in the Turnkey virtual appliances such as the Wordpress 14.1? How can I tell if it is installed and how do I enable it? If not, will it be in the upcoming 14.2 versions?

Jeremy's picture

Technically it could be (if we used Nginx instead fo Apache) but the current appliance uses Apache as it's webserver. And HTTP/2 support unfortuantely isn't avaialble for the version of Apache in Debian Jessie (the base of TurnKey). As v14.2 will still be based on Jessie, it still uses the same Apache version (with backported security updates auto installed). 

So at this point, I wouldn't anticipate OOTB support for ou appliances until v15.0 (which will be based on Debian Stretch).

sts098's picture

Not sure if I should be replying to an old thread or starting a new one.  But been a while since this question was asked.  Is HTTP/2 available on your v16 Lamp Stack?  How do I enable it?  


I tested with:


It replies:  

HTTP/2 protocol is not supported.

ALPN extension is not supported.

sts098's picture

After digging around, and some trial and error, it appears that MPM-prefork doesn't support HTTP/2.  MPM-event and MPM-worker will support HTTP/2 but don't support mod_php.  So in order to get it to work, PHP-fpm needs to be installed.  

Older posts mentioned that there were configuration issues going to PHP-fpm.  Has anyone enabled HTTP/2 support on Turnkey Linux LAMP stack?  Any advice / Steps to implement?  

Hoping to speed up my website


Jeremy Davis's picture

Thanks for the bump on this. And in this sort of scenario, I don't think replying to an old thread is a problem, but I really appreciate your thoughtfulness on that too.

Re Apache HTTP/2 my quick bit of reading supports what you've said (i.e. disable mod_php and install/enable PHP-FPM.

I've also opened an issue to at least ensure that we document it for others who are interested.

Out of interest though, what is your rationale for wanting to enable HTTP/2? I say that as my reading suggests that it's not always going to provide a benefit. Whilst it may make some website performance increase for some sites, it very much depends on the traffic and the server resources. It will put more load on your system (it's more CPU intensive) and in some lower resource scenarios may even have a negative effect on the performance of your website. Obviously YMMV and just because it might not be good is not a decent reason to test it yourself!

If you do go ahead with this, I would love to hear how you go.

Jeremy Davis's picture

Out of interest, I just ran your site through Google's PageSpeed Insights and it looks like most of the slowness is because of the way your assets are loaded. HTTP/2 may help, but only marginally by the look!

After having a closer look at your site via Chrome developer tools, I think that a lot of the issue is the tons of resources that are components of your site. Ideally reducing and/or compressing the resources would be a good start (e.g. there appears to be a significant amount of uncompressed javascript). Possibly one other way to speed things up would be to use a CDN for your static assets.

sts098's picture

Didn't actually expect you to try and diagnose my issues, but thanks for taking the time.  I use a php storefront PrestaShop and some modules.  It appears the store will actually compress its files, but not those of the 3rd part modules.  If I minify these on my own, when updated, I lose the changes.  Not a big issue, but...  Server resources should not be an issue, so not necessarily scared off by CPU cycles.  I was hoping that request multiplexing over a single TCP connection might make some difference, but mostly taking a shot in the dark.  

If I get it done, I will let you know how it works.  Thanks again for the info. 

Steve Schmidt 

Jeremy Davis's picture

I probably shouldn't really as I have plenty of other things to do. But I really just can't help myself...! :)

Re HTTP/2 improving your site's performance, you may well be right. And I certainly didn't want to scare you off. I just wanted to be sure you understood that it's not going to be some sort of silver bullet. There is almost always some sort of trade off with these sort of things...

IIRC when I had a look at your assets, there were a number of prestashop assets (javascript) that definitely weren't minified. So I'm not sure about that?!

Good luck with it all and please do share your experience - whatever you end up doing to try to improve the speed of your site.

Add new comment