Logging php errors

1 post / 0 new
#1 Mon, 04/03/2017 - 19:47
christophera

Logging php errors

Hi,

Ok, so there are times when I need to log php errors to troubleshoot problems.

I know there are errors happening. If I click on 'display error messages' - 'yes', I can see them on the page.

However, if I click on 'write error messages to log' - 'yes', and set the 'log file to: other' and provide the path /var/log/php_error.log nothing is written to it.

I did create the php_error.log and have permissions set to 777 just to make sure that it could write to it, still nothing.

I'm on a CentOS Linux 7.3.1611 using Webmin version 1.831 with Virtualmin version 5.07 and am using php 5.4.16.

Suggestions would be great appreciated!

Chris