PHP.INI Error log issue.

I turned off error displaying, and I changed it so it logs to a file located here: /var/log/php_error.log

The file did not exist, so I did "touch /var/log/php_error.log"
and then changed my php.ini, rebooted php.ini.

error_reporting = E_ALL & ~E_NOTICE ; Show all errors except for notices
display_errors = Off ; Print out errors (as a part of the output)
; For production web sites, you're strongly encouraged
; to turn this feature off, and use error logging instead (see below).
; Keeping display_errors enabled on a production web site may reveal
; security information to end users, such as file paths on your Web server,
; your database schema or other information.
display_startup_errors = Off ; Even when display_errors is on, errors that occur during
; PHP's startup sequence are not displayed. It's strongly
; recommended to keep display_startup_errors off, except for
; when debugging.
log_errors = On ;
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
track_errors = Off ; Store the last error/warning message in $php_errormsg (boolean)
;error_prepend_string = "<font color=ff0000>" ; string to output before an error message
;error_append_string = "</font>" ; string to output after an error message
error_log = /var/log/php_error.log ;
warn_plus_overloading = Off ; warn if the + operator is used with strings
Now it works, no errors are displayed on the webpage, I put an intentional php error to test, but I "cat /var/log/php_error.log' this file and the error is not there, it just returns nothing, a new prompt.

<?
echo "tsfdafdasfsda;
?>
That was the file that has a error, on purpose to test. It's missing the close " as you can see, so it should produce an error.

Is there a step in there I missed? do I need to chmod or chown that error file or how do I make it so ALL php errors on ALL websites on the server are recorded in that one file?

Thank you.

 

 

 

 

Top