Hi there,
I’ve recently created a new droplet with Ubuntu 16.04 and was pleased to see that sudo apt-get install apache2
gets me Apache 2.4.18. I was hoping that would allow me to enable HTTP2 support; alas, the respective mod_http2 is not included. Is there any way to manually install the module or to get a version of Apache that has it included?
Many thanks, Florian
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Another option is using Ondrej’s Launchpad PPA. For example: (replacing REPOSITORY with string from that page for your Ubuntu version).
sudo add-apt-repository 'REPOSITORY'
sudo apt-get update
sudo apt-get dist-upgrade
This will give you the latest Apache rather than the version specifically for Ubuntu. Of course there are reasons Ubuntu ships slightly differently - stability, known degree of security/performance testing etc. but in my mind it is a worthwhile tradeof especially for HTTP/2
a2enmod http2 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = “UTF-8”, LANG = “en_US.UTF-8” are supported and installed on your system. perl: warning: Falling back to a fallback locale (“en_US.UTF-8”). ERROR: Module http2 does not exist!
sudo add-apt-repository ppa:ondrej/apache2 sudo apt-get update sudo apt-get install apache2 -y sudo a2enmod http2 Put somewhere this directive → Protocols h2 http/1.1 sudo service apache2 restart
From the Source Vide (https://youtu.be/8OM_eqRAsMM)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.