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 error on SuPHP handler

Discussion in 'EasyApache' started by jithindevasia, Nov 5, 2014.

  1. jithindevasia

    jithindevasia Registered

    Joined:
    Nov 5, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tripunittura, India
    cPanel Access Level:
    Root Administrator
    Hello,

    I am facing a problem with suPHP handler. I changed to FastCGI to check the php performance and revert back to suPHP. But now my php pages are throwing 500 errors. FastCGI is working fine, but suPHP is not. I have checked and verified the permissions and everything seems fine, suPHP is enabled and its the default PHP 5 handler. I am pasting the required information below. Someone please help.

    Code:
    suPHP enabled
    ==
    [B]# httpd -M | grep -i su[/B]
     suexec_module (static)
     suphp_module (shared)
    Syntax OK
    ==
    
    [B]# /usr/local/cpanel/bin/rebuild_phpconf --current[/B]
    'Available handlers: suphp dso fcgi cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: none
    PHP5 SAPI: suphp
    SUEXEC: enabled
    RUID2: not installed
    ==
    
    [B]tail -100 /usr/local/apache/logs/suphp_log[/B]
    
    [Wed Nov 05 22:07:42 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:08:27 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:08:28 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:09:27 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:10:02 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:12:04 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:12:15 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:12:19 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:12:32 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    [Wed Nov 05 22:23:23 2014] [info] Executing "/home/dady/public_html/phpinfo.php" as UID 501, GID 512
    ==
    I then checked /etc/passwd for any user/group ID mismatch

    Code:
    [B]# grep dady /etc/passwd[/B]
    dady:x:501:512::/home/dady:/usr/local/cpanel/bin/noshell
    ==
    I then checked Apache error logs;

    Code:
    [B]tail -f /usr/local/apache/logs/error_log[/B]
    
    [Wed Nov 05 22:47:12 2014] [error] [client 115.118.210.125] Out of memory
    [Wed Nov 05 22:47:12 2014] [error] [client 115.118.210.125] Premature end of script headers: phpinfo.php
    [Wed Nov 05 22:47:12 2014] [error] [client 115.118.210.125] File does not exist: /home/dady/public_html/500.shtml
    ===
    I tried increasing memory limit in php.ini but that does not work.

    Can someone help please ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you notice the same "Out of Memory" entry in the Apache error log every time you see the "500" error page, or are there other entries? Have you checked to see if the server is at it's physical memory limit, or if any VPS resource limits have been met?

    Thank you.
     
Loading...

Share This Page