How to use Apache mpm_event_module properly?

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,372
Location
London UK
So, I'm looking to set up mpm_event_module, but I'm having issues starting Apache:
Apache is running a threaded MPM, but your PHP Module is not compiled to be thread safe. You need to recompile PHP.
How can I use mpm_event with 2 PHP versions, or can't I?
Code:
#PHP Settings
php1_release=7.2
php1_mode=php-fpm
php2_release=5.6
php2_mode=mod_php
ioncube=yes
zend=yes
suhosin=yes


#WEB Server Settings
webserver=apache
apache_ver=2.4
apache_mpm=event
 
Last edited:
So, I'm looking to set up mpm_event_module, but I'm having issues starting Apache:

How can I use mpm_event with 2 PHP versions, or can't I?
Code:
#PHP Settings
php1_release=7.2
php1_mode=php-fpm
php2_release=5.6
php2_mode=mod_php
ioncube=yes
zend=yes
suhosin=yes


#WEB Server Settings
webserver=apache
apache_ver=2.4
apache_mpm=event

SEE while get rid mod_php first
e great way to do that is to switch from the Prefork MPM to the new Event MPM in Apache 2.4. However, that requires getting rid of mod_php and switching to a PHP-FPM backend proxied via mod_proxy_fcgi. All that sounds fine and dandy, except that there have been several problems with it in the
 
Change all PHP modes to php-fpm and recompile Apache+php. You will be good to go.
 
Back
Top