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.




187 posts

Master Geek
+1 received by user: 31


Topic # 220211 31-Jul-2017 17:42
Send private message quote this post

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
13163 posts

Uber Geek
+1 received by user: 2191

Trusted
Subscriber

  Reply # 1834505 31-Jul-2017 19:36
Send private message quote this post

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.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer




187 posts

Master Geek
+1 received by user: 31


  Reply # 1834621 1-Aug-2017 00:28
Send private message quote this post

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


 
 
 
 




187 posts

Master Geek
+1 received by user: 31


  Reply # 1835201 1-Aug-2017 19:51
Send private message quote this post

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


13163 posts

Uber Geek
+1 received by user: 2191

Trusted
Subscriber

  Reply # 1835219 1-Aug-2017 20:25
Send private message quote this post

I had trouble with PHP 7 as well




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


6687 posts

Uber Geek
+1 received by user: 3061

Moderator
Trusted
Subscriber

  Reply # 1835232 1-Aug-2017 20:50
Send private message quote this post

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
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router GuideCommunity UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial




187 posts

Master Geek
+1 received by user: 31


  Reply # 1836756 3-Aug-2017 18:03
Send private message quote this post

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



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Vodafone TV — television in the cloud
Posted 17-Oct-2017 19:29


Nokia 8 review: Classy midrange pure Android phone
Posted 16-Oct-2017 07:27


Why carriers might want to embrace Commerce Commission study, MVNOs
Posted 13-Oct-2017 09:42


Fitbit launches Ionic, its health and fitness smartwatch
Posted 12-Oct-2017 15:52


Xero launches machine learning automation to improve coding accuracy for small businesses
Posted 12-Oct-2017 15:45


Bank of New Zealand uses Intel AI to detect financial crime
Posted 12-Oct-2017 15:39


Sony launches Xperia XZ1, a smartphone with real-time 3D capture
Posted 11-Oct-2017 10:26


Notes on Nokia’s phone comeback
Posted 10-Oct-2017 10:06


Air New Zealand begins Inflight Wi-Fi rollout
Posted 9-Oct-2017 20:16


The latest mobile phones in perspective
Posted 9-Oct-2017 18:34


Review: Acronis True Image 2018 — serious backup
Posted 8-Oct-2017 11:22


Lenovo launches ThinkPad Anniversary Edition 25
Posted 7-Oct-2017 23:16


Less fone, more tech as Vodafone gets brand make-over
Posted 6-Oct-2017 08:16


API Talent Achieves AWS MSP Partner Status
Posted 5-Oct-2017 21:20


Stellar Consulting Group now a Domo Partner
Posted 5-Oct-2017 21:03



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.

Alternatively, you can receive a daily email with Geekzone updates.