Skip to content

suEXEC versus mpm-itk for per-account isolation on cPanel

When suEXEC is sufficient for per-account file ownership semantics on a cPanel server and when mpm-itk is the better tool, with the trade-off for performance, MPM choice, and CloudLinux interaction.

Per-account isolation on a shared cPanel server means: when account A’s PHP runs, it does so as the account A Linux user, with that user’s file ownership and group permissions. cPanel offers two mechanisms — suEXEC (default, works with PHP-FPM and FastCGI) and mpm-itk (alternative MPM that sets the per-vhost user globally). They are not interchangeable; picking the right one depends on what handler you are running and whether CloudLinux is in the mix.

What’s happening

suEXEC is an Apache feature: when a vhost specifies SuexecUserGroup, every CGI-style invocation (including FastCGI and FPM connections) runs as that user. It works under any MPM. mpm-itk is an alternative MPM where the Apache child itself runs as the per-vhost user; every request to that vhost is handled by a process owned by the vhost owner. It does not work with event or worker MPM — it replaces them entirely — and it is incompatible with the mod_proxy_fcgi model used by PHP-FPM. CloudLinux’s LVE adds a third path: per-user cgroup limits applied at the kernel level, independent of which Apache mechanism you use.

How to verify

Find out which mechanism is in play:

apachectl -V | grep MPM
apachectl -M | grep -E "suexec|itk"
whmapi1 php_get_system_default_handler
ps -o user,pid,cmd -C httpd | head
rpm -qa | grep cloudlinux

If the MPM is event/worker, you are on suEXEC. If MPM is itk, you are on mpm-itk. The ps output shows whether Apache children run as nobody (no isolation), apache (some setups), or per-vhost users (mpm-itk).

The fix

  1. If you are on PHP-FPM or FastCGI, suEXEC is what you want. There is nothing to do — confirm SuexecUserGroup is in each vhost include with apachectl -t -D DUMP_INCLUDES | grep -i suexec.
  2. If you are still on DSO (mod_php with prefork) and need isolation, mpm-itk is one option, but the better answer is to migrate to PHP-FPM (see the handler migration article). DSO’s “all PHP runs as nobody” model has no isolation by design.
  3. If you are on CloudLinux, LVE provides isolation independent of Apache. The PHP handler choice still matters for the process user, but per-account memory and CPU limits come from the kernel cgroup. Use suEXEC + PHP-FPM + LVE for a clean stack.
  4. mpm-itk is rarely the right answer in 2026 — it predates PHP-FPM as a serious option, runs Apache children with elevated capabilities, and conflicts with event MPM’s performance advantages. The only reason to pick it now is a legacy app that depends on mod_php semantics and cannot move to FPM.
  5. Validate per-account file ownership semantics. As a test, have a PHP script in account A’s docroot run posix_getpwuid(posix_geteuid())['name'] — the result should be account A’s username, not nobody or apache.
  6. Document the isolation model. If a customer asks “what user does my PHP run as,” you should be able to answer in one sentence based on your standardized choice.

For environments where multi-tenant isolation is part of compliance posture, Stack Harbor picks the right combination during onboarding under cPanel server management.