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.


242 posts

Master Geek
+1 received by user: 38


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

Uber Geek
+1 received by user: 2488

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




242 posts

Master Geek
+1 received by user: 38


  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




242 posts

Master Geek
+1 received by user: 38


  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


13974 posts

Uber Geek
+1 received by user: 2488

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


Meow
7518 posts

Uber Geek
+1 received by user: 3632

Moderator
Trusted
Lifetime 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.







242 posts

Master Geek
+1 received by user: 38


  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 »

Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07



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.