I have noticed some errors are not being logged in the error log I setup.
When a require() file is not present no error is generated. I intentionally, made parse errors and they are not being generated in the error log either. It appears as if PHP is not logging system errors; only the errors that I capture are being logged. Can anyone help me?
What I have done so far...
in php.ini...
error_reporting = E_ALL
display_errors = Off
log_errors = On
track_errors = Off
error_log = /var/log/php_error.log
then restarted httpd
on the php_error.log file...
I have chmod 664 and chown root:apache on the php_error.log file in /var/log
in the code...
error_log($error_entry, 3, ERROR_LOG)
where $error_entry is the error to report and the constant ERROR_LOG is /var/log/php_error.log
Am I missing something?