Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


bigalow

562 posts

Ultimate Geek


#220211 31-Jul-2017 17:42
Send private message

had to reboot one of my servers and notice this in the log

 

 

 

[http2:warn] [pid 2139] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.

 

couldnt find a lot about it on google but it has some thing to do with mpm_prefork being old and doesnt work with http2

 

 

 

so it there a mpm_prefork alternative i can try ??





 

 

 


Create new topic
timmmay
20499 posts

Uber Geek

Trusted
Lifetime subscriber

  #1834505 31-Jul-2017 19:36
Send private message

If you don't get an answer here try Server Fault. I use Nginx for HTTP/2 and it works fine. I also use CloudFlare, which does HTTP/2 automagically.




bigalow

562 posts

Ultimate Geek


  #1834621 1-Aug-2017 00:28
Send private message

found this , after doing this the server is running ok

 

 

 

 

 

Troubleshooting

 

Apache 2.4.27, HTTP/2 not supported in prefork

 

Starting from Apache 2.4.27, the Apache MPM (Multi-Processing Module) prefork no longer supports HTTP/2. This will be indicated in your Apache error log as follows:
AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.

 

To fix this, select a different MPM: event or worker. We highly recommend you to use the event prefork.
If you are using PHP, it is likely that PHP is integrated to Apache via the mod_php module, which requires the prefork MPM. If you switch out from preform MPM, you will need to use PHP as FastCGI. To switch to php-fpm, you can do as folllwing. Please note that this assumes you have PHP installed from ondrej/php repository on Ubuntu. The PHP package names could be different in other repositories. Change package name and apt-get commands to match your PHP vendor and package manager.
apachectl stop
apt-get install php7.1-fpm # Install the php-fpm from your PHP repository. This package name depends on the vendor.
a2enmod proxy_fcgi setenvif
a2enconf php7.1-fpm # Again, this depends on your PHP vendor.
a2dismod php7.1 # This disables mod_php.
a2dismod mpm_prefork # This disables the prefork MPM. Only one MPM can run at a time.
a2enmod mpm_event # Enable event MPM. You could also enable mpm_worker.
apachectl start


bigalow

562 posts

Ultimate Geek


  #1835201 1-Aug-2017 19:51
Send private message

notice that after installing php7.1-fpm id f***ed up my php scripts and wordpress

 

since php needs mpm_prefork just have to roll back to the last backup and

 

just wait for a fix or patch




timmmay
20499 posts

Uber Geek

Trusted
Lifetime subscriber

  #1835219 1-Aug-2017 20:25
Send private message

I had trouble with PHP 7 as well

michaelmurfy
meow
13217 posts

Uber Geek

Moderator
ID Verified
Trusted
Lifetime subscriber

  #1835232 1-Aug-2017 20:50
Send private message

You don't need to at all - Wordpress supports PHP7. With PHP7-FPM you should be using the event MPM which is the configuration I've got on my servers:

 

a2dismod php7
a2dismod mpm_prefork
a2enmod mpm_event
a2enconf php7.0-fpm

 

Ensure you have not got mod_php enabled and have enabled the php-fpm configuration in your Apache configuration.

 

Edit: It'll also help if you post what you're running as your operating system.





Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.


bigalow

562 posts

Ultimate Geek


  #1836756 3-Aug-2017 18:03
Send private message

ubuntu 16.04

 

Apache version 2.4.27 from http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial main

 

php 5.6 from http://ppa.launchpad.net/ondrej/php/ubuntu xenial main

 

 


Create new topic





News and reviews »

Logitech G522 Gaming Headset Review
Posted 18-Jun-2025 17:00


Māori Artists Launch Design Collection with Cricut ahead of Matariki Day
Posted 15-Jun-2025 11:19


LG Launches Upgraded webOS Hub With Advanced AI
Posted 15-Jun-2025 11:13


One NZ Satellite IoT goes live for customers
Posted 15-Jun-2025 11:10


Bolt Launches in New Zealand
Posted 11-Jun-2025 00:00


Suunto Run Review
Posted 10-Jun-2025 10:44


Freeview Satellite TV Brings HD Viewing to More New Zealanders
Posted 5-Jun-2025 11:50


HP OmniBook Ultra Flip 14-inch Review
Posted 3-Jun-2025 14:40


Flip Phones Are Back as HMD Reimagines an Iconic Style
Posted 30-May-2025 17:06


Hundreds of School Students Receive Laptops Through Spark Partnership With Quadrent's Green Lease
Posted 30-May-2025 16:57


AI Report Reveals Trust Is Key to Unlocking Its Potential in Aotearoa
Posted 30-May-2025 16:55


Galaxy Tab S10 FE Series Brings Intelligent Experiences to the Forefront with Premium, Versatile Design
Posted 30-May-2025 16:14


New OPPO Watch X2 Launches in New Zealand
Posted 29-May-2025 16:08


Synology Premiers a New Lineup of Advanced Data Management Solutions
Posted 29-May-2025 16:04


Dyson Launches Its Slimmest Vaccum Cleaner PencilVac
Posted 29-May-2025 15:50









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.