Is there are way to log PHP errors in fastcgi?

I have configured the virtual host with a custom php.ini which has the
error_log value configured, but the file is empty, it is not created at
all.

Does the FastCGI have another way to log the PHP errors?


Frank C.

=======================
http://devblog.brahmancreations.com

Hi

Any fastcgi errors will be shown in your php log. You might have to
edit php.ini for that.

HTH,
Nuno


Mars 2 Stay!

/etc

On 3 November 2010 00:38, Frank C. [email protected] wrote:

=======================
http://devblog.brahmancreations.com

Any help?

Does nginx or the fastcgi module cause all the php errors to show in the
main error log?
The configuration is definitely correct, phpinfo() shows them both
correctly, but the php error log is still not created.


Frank C.

=======================
http://devblog.brahmancreations.com

stderr of fastcgi would be logged in nginx’s error.log file.

On Wed, Nov 3, 2010 at 8:38 AM, Frank C. [email protected] wrote:

I have configured the virtual host with a custom php.ini which has the
error_log value configured, but the file is empty, it is not created at
all.

Does the FastCGI have another way to log the PHP errors?


Ren Xiaolei

On 3 November 2010 23:58, Frank C. [email protected] wrote:

Does nginx or the fastcgi module cause all the php errors to show in the

Output of phpinfo()

display_errors Off
display_startup_errors Off
error_log /opt/manager_app/www/logs/php_error.log
log_errors On
log_errors_max_len 1024

Everything appears to be set correctly.

Can something in the additional ini files affect it?


Frank C.

=======================
http://devblog.brahmancreations.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/03/2010 09:58 PM, Frank C. wrote:

The configuration is definitely correct, phpinfo() shows them both
correctly, but the php error log is still not created.

It’s a php.ini issue. At phpinfo output, check the following flags:

    • error_log (php_errors.log) - Also, check file permissions.
    • log_errors (should be on)

Hope this helps


/---------------------------------------------------/
/* * Flavio Torres /
/
/\ /int y,z;main(x){x=(x>0?-9:x);z=((z=(x+5)
/
o. .o /)>0?z:-z);printf(!x&&++y?"\n":z?z>y%3+y/
/
((Y)) /3?" “:x<-5?”/":"\":y?"|":"");y-9?main(
/* ()) (() */++x):puts(" ||
")&&puts(" \___/");}
/* ()^() A party animal isn’t just for Christmas.*/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkzR/QgACgkQNRQApncg296IdACeMOj5EYib9jLQyVXBHVdENl79
yKkAn2M47rUNM8fc9GN0HtMEWev5VAFZ
=cZvD
-----END PGP SIGNATURE-----