Created
April 3, 2020 12:51
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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