Apache httpd mod_php error: "Allowed memory size of 134217728 bytes exhausted"

Solution Unverified - Updated -

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
  • httpd
  • mod_php

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.