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.




207 posts

Master Geek
+1 received by user: 32


Topic # 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
13353 posts

Uber Geek
+1 received by user: 2249

Trusted
Subscriber

  Reply # 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.





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




207 posts

Master Geek
+1 received by user: 32


  Reply # 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


 
 
 
 




207 posts

Master Geek
+1 received by user: 32


  Reply # 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


13353 posts

Uber Geek
+1 received by user: 2249

Trusted
Subscriber

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

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


6859 posts

Uber Geek
+1 received by user: 3163

Moderator
Trusted
Subscriber

  Reply # 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
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




207 posts

Master Geek
+1 received by user: 32


  Reply # 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



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 »

Mobile market competition issues ComCom should watch
Posted 18-Dec-2017 10:52


New Zealand government to create digital advisory group
Posted 16-Dec-2017 08:47


Australia datum changes means whole country moving 1.8 metres north-east
Posted 16-Dec-2017 08:39


UAV Traffic Management Trial launching today in New Zealand
Posted 12-Dec-2017 16:06


UFB connections pass 460,000
Posted 11-Dec-2017 11:26


The Warehouse Group to adopt IBM Cloud to support digital transformation
Posted 11-Dec-2017 11:22


Dimension Data peeks into digital business 2018
Posted 11-Dec-2017 10:55


2018 Cyber Security Predictions
Posted 7-Dec-2017 14:55


Global Govtech Accelerator to drive public sector innovation in Wellington
Posted 7-Dec-2017 11:21


Stuff Pix media strategy a new direction
Posted 7-Dec-2017 09:37


Digital transformation is dead
Posted 7-Dec-2017 09:31


Fake news and cyber security
Posted 7-Dec-2017 09:27


Dimension Data New Zealand strengthens cybersecurity practice
Posted 5-Dec-2017 20:27


Epson NZ launches new Expression Premium Photo range
Posted 5-Dec-2017 20:26


Eventbrite and Twickets launch integration partnership in Australia and New Zealand
Posted 5-Dec-2017 20:23



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.