500 error on SuPHP handler
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.
I then checked /etc/passwd for any user/group ID mismatch
I then checked Apache error logs;
I tried increasing memory limit in php.ini but that does not work. Can someone help please ?
suPHP enabled
==
# httpd -M | grep -i su
suexec_module (static)
suphp_module (shared)
Syntax OK
==
# /usr/local/cpanel/bin/rebuild_phpconf --current
'Available handlers: suphp dso fcgi cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: suphp
SUEXEC: enabled
RUID2: not installed
==
tail -100 /usr/local/apache/logs/suphp_log
[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
# grep dady /etc/passwd
dady:x:501:512::/home/dady:/usr/local/cpanel/bin/noshell
==I then checked Apache error logs;
tail -f /usr/local/apache/logs/error_log
[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 ?
-
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. 0
Please sign in to leave a comment.
Comments
1 comment