MPM mode

Peter Laws

Verified User
Joined
Sep 13, 2008
Messages
1,812
Location
London UK
If this option is set to auto in CB2 and Apache gives prefork used, does this mean the OS is unable to handle the other options?
 

scriptkitty

Verified User
Joined
Jul 10, 2019
Messages
148
It looks like it chooses the most compatible MPM based on your handler chosen. If you chose mod_php (DSO), my understanding is that it requires prefork.

Per CustomBuild FAQ
  • Major change: if php1/php2/php3/php4_mode is set to suphp, fastcgi, lsphp or php-fpm, event Apache MPM is used (when no mod_php is selected).
  • apache_mpm - this option is used to choose the MPM (Multi-Processing Module) of Apache. MPM is chosen during "./build apache". Possible values: prefork, event, auto (default: auto). Auto option selects "Event" MPM if mod_php is not chosen as php1_mode, otherwise "Prefork" MPM is set

 

Peter Laws

Verified User
Joined
Sep 13, 2008
Messages
1,812
Location
London UK
Auto option selects "Event" MPM if mod_php is not chosen as php1_mode, otherwise "Prefork" MPM is set
I only use fpm for PHP these days, yet, it still compiles to prefork even on auto.
 

Peter Laws

Verified User
Joined
Sep 13, 2008
Messages
1,812
Location
London UK
ruid2 disabled and I do have a custom Apache configure with
Code:
        "--enable-http2" \
        "--with-ssl=/usr/local/lib_http2" \
Is http2 native now?
 

Active8

Verified User
Joined
Jul 13, 2013
Messages
335
Same here, just check a server that had mod_php before and now is changed to php-fpm few months ago

With httpd -V command I see that it is also in Prefork mode, changed manually to Event mode and rebuild apache and it is ok now.
I assumed that switching to php-fpm would change that automatically but it dont (mod_ruid2 is not active)
 

traskowski

Verified User
Joined
Nov 13, 2012
Messages
49
I had the same problem... After build php it's auto change to prefork. But after rebuild_confs it's change to selected one (i've got selected Event prefork in directadmin config).

I can't rebuild/update php becouse it's always change MPM for apache. Any solution? Mod_ruid2 disabled, enabled http2 (debian 8, i just update openssl to 1.0.2u).
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,112
Location
LT, EU
I had the same problem... After build php it's auto change to prefork. But after rebuild_confs it's change to selected one (i've got selected Event prefork in directadmin config).

I can't rebuild/update php becouse it's always change MPM for apache. Any solution? Mod_ruid2 disabled, enabled http2 (debian 8, i just update openssl to 1.0.2u).
What's the output of:
Code:
/usr/local/directadmin/custombuild/build version
 

traskowski

Verified User
Joined
Nov 13, 2012
Messages
49
May you check if 2448 solves it? Thank you!
i dont see any new version of custombuild. I need to install some beta version? I mean the newest version is
rev: 2447

@edit
nevermind, from other location it's working fine.

@edit2
It's working, Thanks smtalk
 
Last edited:
Top