MPM mode

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,368
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?
 
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

 
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.
 
ruid2 disabled and I do have a custom Apache configure with
Code:
        "--enable-http2" \
        "--with-ssl=/usr/local/lib_http2" \
Is http2 native now?
 
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)
 
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).
 
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
 
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:
Back
Top