Welcome! Log In Create A New Profile

Advanced

How do I log and debug 500 errors?

Posted by Ralph Lawrence 
Ralph Lawrence
How do I log and debug 500 errors?
March 05, 2012 05:22PM
Hi,

How do I get PHP-FPM to give me details on why it's returning a 500 code
error?

I've been getting a 500 server response code ( it's not a bad gateway )
from my server. But even though the log files are set to log_level
'notice', I still don't see the 500 errors logged any where on the system.

I have error logging turned on in the php.ini as well.

I've also tried running PHP-FPM in the foreground, but still nothing but
notices on the standard output. No errors in the PHP logs either.

Anyone know who to get the debugging information I need?

Best regards,
Ralph
Rainer Duffner
Re: How do I log and debug 500 errors?
March 05, 2012 05:24PM
Am 05.03.2012 um 22:09 schrieb Ralph Lawrence:

> Hi,
>
> How do I get PHP-FPM to give me details on why it's returning a 500 code error?
>
> I've been getting a 500 server response code ( it's not a bad gateway ) from my server. But even though the log files are set to log_level 'notice', I still don't see the 500 errors logged any where on the system.
>
> I have error logging turned on in the php.ini as well.
>
> I've also tried running PHP-FPM in the foreground, but still nothing but notices on the standard output. No errors in the PHP logs either.
>
> Anyone know who to get the debugging information I need?
>
> Best regards,
> Ralph



What is your web-server?


Rainer
Ralph Lawrence
Re: How do I log and debug 500 errors?
March 05, 2012 05:38PM
It's nginx 1.1.16. But I'm trying to debug on the FPM side of things.

What's confusing is that I can't get any logs besides the usual startup
notices from PHP-FPM or PHP in general.

I've also tried the '-e' option and also running under strace. Is there a
way to get FPM to not fork any children and only use the master process for
processing?

Best regards,
Ralph

On Monday, March 5, 2012 5:23:20 PM UTC-5, rainer wrote:
>
>
> Am 05.03.2012 um 22:09 schrieb Ralph Lawrence:
>
> > Hi,
> >
> > How do I get PHP-FPM to give me details on why it's returning a 500 code
> error?
> >
> > I've been getting a 500 server response code ( it's not a bad gateway )
> from my server. But even though the log files are set to log_level
> 'notice', I still don't see the 500 errors logged any where on the system.
> >
> > I have error logging turned on in the php.ini as well.
> >
> > I've also tried running PHP-FPM in the foreground, but still nothing but
> notices on the standard output. No errors in the PHP logs either.
> >
> > Anyone know who to get the debugging information I need?
> >
> > Best regards,
> > Ralph
>
> What is your web-server?
>
>
> Rainer
>
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready