Trying to enable http2 on Ubuntu 17.04, Apache/2.4.25

I tried: sudo a2enmod http2

but it says it doesn’t exist? Do I need another version of apache?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

HTTP/2 in Apache is production-ready starting with version 2.4.26. So you will need Apache 2.4.26 or above. This can be realized by executing the following commands in the shell:

$ sudo apt install software-properties-common $ sudo add-apt-repository ppa:ondrej/apache2 $ sudo apt update $ sudo apt install apache2

Then you can redo your original command to activate the module in Apache:

$ sudo a2enmod http2

Hope it helps.

It didn’t work