{"id":642,"date":"2020-10-28T08:24:47","date_gmt":"2020-10-28T14:24:47","guid":{"rendered":"http:\/\/lucasmanual.com\/blog\/?p=642"},"modified":"2020-10-28T08:24:47","modified_gmt":"2020-10-28T14:24:47","slug":"enabling-http-2","status":"publish","type":"post","link":"https:\/\/lucasmanual.com\/blog\/enabling-http-2\/","title":{"rendered":"Enabling HTTP\/2"},"content":{"rendered":"\n<p>aptitude or apt-get <\/p>\n\n\n\n<p><br>aptitude install php-fpm<br>a2enmod proxy_fcgi setenvif<br>a2enconf php7.3-fpm<\/p>\n\n\n\n<p>#Lets enable mpm_event<\/p>\n\n\n\n<p>a2dismod php7.3<br>a2dismod mpm_prefork<br>a2enmod mpm_event<\/p>\n\n\n\n<p>\/etc\/init.d\/apache2 restart<\/p>\n\n\n\n<p>a2enmod http2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Browsers don't support http2 protocol unless its over TLSv1.2. You can disable older version of encryption if you would like. \nSSLProtocol all -SSLv3 -TLSv1 -TLSv1.1<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p>Few Errors that came up. The order above fixes the issues.<\/p>\n\n\n\n<p>a2enmod mpm_event<br> Considering conflict mpm_worker for mpm_event:<br> Considering conflict mpm_prefork for mpm_event:<br> ERROR: Module mpm_prefork is enabled &#8211; cannot proceed due to conflicts. It needs to be disabled first!<br><\/p>\n\n\n\n<p>a2dismod mpm_prefork<br> ERROR: The following modules depend on mpm_prefork and need to be disabled first: php7.<br><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>References:<br><br>https:\/\/medium.com\/@sbuckpesch\/apache2-and-php-fpm-performance-optimization-step-by-step-guide-1bfecf161534<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/medium.com\/@sbuckpesch\/apache2-and-php-fpm-performance-optimization-step-by-step-guide-1bfecf161534\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>aptitude or apt-get aptitude install php-fpma2enmod proxy_fcgi setenvifa2enconf php7.3-fpm #Lets enable mpm_event a2dismod php7.3a2dismod mpm_preforka2enmod mpm_event \/etc\/init.d\/apache2 restart a2enmod http2 Few Errors that came up. The order above fixes the issues. a2enmod mpm_event Considering conflict mpm_worker for mpm_event: Considering conflict mpm_prefork for mpm_event: ERROR: Module mpm_prefork is enabled &#8211; cannot proceed due to conflicts. It&hellip; <a class=\"more-link\" href=\"https:\/\/lucasmanual.com\/blog\/enabling-http-2\/\">Continue reading <span class=\"screen-reader-text\">Enabling HTTP\/2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3,27,4,1],"tags":[],"class_list":["post-642","post","type-post","status-publish","format-standard","hentry","category-corporate","category-debian","category-it-department","category-linux","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/comments?post=642"}],"version-history":[{"count":2,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":674,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/posts\/642\/revisions\/674"}],"wp:attachment":[{"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/media?parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/categories?post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/tags?post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}