The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    133
    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:
    13
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  3. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    54
    Likes Received:
    6
    Trophy Points:
    8
    cPanel Access Level:
    Website Owner
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    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.
     
Loading...

Share This Page