Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18404
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: log_errors = Off not work |
| Date | 2020-11-18 14:12 +0100 |
| Message-ID | <i1kkt8Fk9stU1@mid.individual.net> (permalink) |
| References | <rp2mf7$14ir$1@gioia.aioe.org> |
On 18/11/2020 09.36, alex wrote:
> $ grep 'log_errors =' /etc/php/7.4/cli/php.ini
> log_errors = Off
>
> $ date && php -r "error_log('abc');" && ls -l /var/log/error.log
> mer 18 nov 2020, 09:25:58, CET
> -rw-rw-r-- 1 xxx yyy 25931 nov 18 09:25 /var/log/error.log
>
> As you can see log_errors is Off, but it seems that the log file is
> written: just compare the current date with the file date.
>
> Why?
Did you do a tail /var/log/error.log to see that it was your message
that was written there and not something else that just happen to have
the same minute for it's log write?
Are you sure your php cli is version 7.4?
did you try to just comment it out by placing ; as the first character
of the line? Sometimes non-visible characters may cause problems.
(default value is Off)
did you uncomment error_log = syslog or set a custom file?
--
//Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 09:36 +0100
Re: log_errors = Off not work "J.O. Aho" <user@example.net> - 2020-11-18 14:12 +0100
Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 16:39 +0100
Re: log_errors = Off not work "J.O. Aho" <user@example.net> - 2020-11-18 17:09 +0100
Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 17:25 +0100
Re: log_errors = Off not work Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-11-18 17:39 +0000
Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-19 16:27 +0100
Re: log_errors = Off not work Arno Welzel <usenet@arnowelzel.de> - 2020-11-19 15:42 +0100
Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-19 19:22 +0100
csiph-web