Hi guys.
I’m sorry if I wanna ask some basic question that made me confused.
Is it important or is it fine if we use PHP-FPM with Apache SUEXEC enabled? Or is there another option to reach fastest and secure multiple domain hosting?
What’s the reason? Thank you.
PHP-FPM does not run under Apache, and thus is not subject to suexec. FPM runs as the domain owner user for each domain (it is similarly safe to using suexec).
FPM is the recommended execution mode, and it is developed and maintained by core PHP developers under the umbrella of the PHP project. There is no better way to run PHP.
So if I use PHP-FPM, I don’t need Apache suexec anymore to have fast and secure web hosting?
Or does suexec add another layer of security for hosting that use PHP-FPM?
That doesn’t make any sense. PHP-FPM does not run under Apache, as I said. suexec is for Apache running things (mod_fcgid or mod_cgi, for example). PHP-FPM is its own application server independent of Apache, and Apache proxies to it.