Could you please check the output of
apachectl -M 2>/dev/null|grep mpm|awk '{print $1}'
If that is mpm_prefork_module
, then you must change the php SAPI
SAPI stands for “Server API” (API stands for “Application Programming Interface”). It is the mechanism that controls the interaction between the “outside world” and the PHP/Zend engine.
These are the most important SAPIs:
Command Line Interface
- term - cli
- package -
php<VER>-cli
- description:
cli is used by PHP scripts that are called from the command line. i.e. all processes that were explicitly NOT called by the web server (cron jobs, occ commands, etc.)
Apache2 module
- term - apache2
- package -
libapache2-mod-php<VER>
- description:
the apache2 module is the default SAPI for apache2. The downside is that it’s not particularly scalable and doesn’t support http2.
libapache2-mod-php relies on the old but stable Multi-Processing Module (MPM) “mpm-prefork”.
Fast Process Manager
- term - fpm
- package -
php<VER>-fpm
- description:
On apache2 php-fpm relies on the more scalable threaded MPM “mpm-event” which supports http2. Additionally it needs the apache2-modules “proxy_fcgi” and “setenvif”.
I hope this was helpfull.
Much and good luck,
ernolf