Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP allowed memory size exhausted

Discussion in 'General Discussion' started by InteractM, Jul 7, 2016.

  1. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I have set PHP memory_limit to 512M and one of hosted sites (Wordpress) suddenly started causing 500 internal server error on

    Code:
    PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /public_html/wp-includes/compat.php on line 123
    
    Any idea what can be wrong?
     
  2. amdbuilder

    amdbuilder Member
    PartnerNOC

    Joined:
    Feb 5, 2013
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Durham, NC
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    There is a good chance you have a programming error on the site, causing the increased memory usage. Regardless of how much you increase the limit you will continue having the problem.

    You might try disabling any recent plugins, to see if that resolves the problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    136
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Website Owner
    Twitter:
    Try cross checking if the changes are updated for the respective domain by uploading a phpinfo page and checking the memory limit.
    At time we have also managed to fix such issues by increasing Rlimit value in apache.conf.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can also check to see if any third-party plugins are installed on that WordPress installation. It's possible a plugin could result in excessive memory usage.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice