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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content