Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vanWittlaer/ec0ef48f571357b84b19796a20dcd42f to your computer and use it in GitHub Desktop.
Save vanWittlaer/ec0ef48f571357b84b19796a20dcd42f to your computer and use it in GitHub Desktop.
Enable php-fpm with fast-fcgi and HTTP2 on ubuntu 18.04/apache2
# run as sudo
apt update
apt install php-fpm
a2enmod proxy_fcgi
a2enconf php7.2-fpm
a2dismod php7.2
a2dismod mpm_prefork
a2enmod mpm_event
a2enmod http2
service apache2 restart
service php7.2-fpm restart
# check with
apachectl -V
# check http2 support enabled on https://tools.keycdn.com/http2-test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment