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.

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:
    1
    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:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Is this VPS or dedicated?
    How much RAM?
     
  3. tman862

    tman862 Member

    Joined:
    Nov 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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:
    1
    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:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    What did you adjust? RLimitMEM?
     
  6. tman862

    tman862 Member

    Joined:
    Nov 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Correct. After raising that value and restarting every thing functions correctly.
     
Loading...

Share This Page