Apache httpd mod_php error: "Allowed memory size of 134217728 bytes exhausted"
Issue
The following error in the httpd
error log:
[error] [client 1.2.3.4] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 512 bytes) in /path/to/MyPhp.php on line 107, referer: https://example.com/page
Environment
- Red Hat Enterprise Linux (RHEL) 7.x, 8.x
- httpd
- mod_php
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.