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!

500 Internal Server Error with PHP files.

Discussion in 'General Discussion' started by tman862, Dec 10, 2011.

  1. tman862

    tman862 Member

    Joined:
    Nov 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hello every one, I am having an issue with my server responding with a 500 internal error with all PHP files that are attempting to be executed. I've checked permissions server wide and every one holds the correct permissions and ownership.

    Earlier today I was getting this error in the Apache log,

    [Sat Dec 10 11:59:09 2011] [error] [client *.*.*.*] Premature end of script headers: index.php
    [Sat Dec 10 11:59:09 2011] [error] [client *.*.*.*] File does not exist: /home/*username*/public_html/500.shtml

    Which I understand the 2nd error with there not being any error pages. But the first I do not completely understand. I rebuilt Apache, cleared the logs and restarted the server. After I did that I am now getting this error

    [Sat Dec 10 11:59:09 2011] [error] [client *.*.*.*] /usr/bin/php: error while loading shared libraries: libplc4.so: failed to map segment from shared object: Cannot allocate memory
    [Sat Dec 10 11:59:09 2011] [error] [client *.*.*.*] Premature end of script headers: index.php
    [Sat Dec 10 11:59:09 2011] [error] [client *.*.*.*] File does not exist: /home/*username*/public_html/500.shtml

    It seems that this is only happening with PHP files and HTML, CSS and other normal non scripting languages are working fine. This is also happening on all accounts not just one.

    Thanks in advance for any info!!
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Is this VPS or dedicated?
    How much RAM?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tman862

    tman862 Member

    Joined:
    Nov 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    VPS, 1 GB ram. Sorry forgot to add this at the end.
     
  4. tman862

    tman862 Member

    Joined:
    Nov 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Well after viewing some additional logs, and checking the Apache memory limits, it ended up being a memory limit problem more than any thing else. After adjustment and a restart every thing seems to be back to normal.
     
  5. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    What did you adjust? RLimitMEM?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. tman862

    tman862 Member

    Joined:
    Nov 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Correct. After raising that value and restarting every thing functions correctly.
     
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