Re: cannot allocate memory in static TLS block
| From: | AllenJB | Date: | Tue, 16 Jul 2024 08:35:44 +0000 |
| Subject: | Re: cannot allocate memory in static TLS block | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-328459@lists.php.net to get a copy of this message | ||
It looks like you're using PHP as an Apache extension (mod_php) with the Event MPM. This is not a recommended setup.
Either switch to PHP-FPM (I would recommend this option) or use the Prefork MPM.
Using PHP-FPM will completely separate PHP and Apache, which will reduce the potential for issues (particularly if using PHP from a third party repo or self-compiled), as well as being more flexible and performant.
See the warnings on https://www.php.net/manual/en/install.unix.apache2.php
See also https://cwiki.apache.org/confluence/display/HTTPD/PHP