Bug #76573 [Fbk]: Log file is created with wrong permissions if deprecated configuration found
| From: | ab@php.net | Date: | Thu, 05 Jul 2018 21:01:20 +0000 |
| Subject: | Bug #76573 [Fbk]: Log file is created with wrong permissions if deprecated configuration found | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216161@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76573&edit=1
ID: 76573
Updated by: ab@php.net
Reported by: mbiebl at messageconcept dot com
Summary: Log file is created with wrong permissions if
deprecated configuration found
Status: Feedback
Type: Bug
Package: IIS related
Operating System: Windows Server 2016
PHP Version: 7.2.7
Block user comment: N
Private report: N
New Comment:
Or some relevant configs, at least.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2018-07-05 21:00:14] ab@php.net
@mbiebl could you please share a backtrace or a crash dump from the case the syslog scenario
crashes? See https://bugs.php.net/bugs-generating-backtrace-win32.php
Thanks.
------------------------------------------------------------------------
[2018-07-05 20:18:32] spam2 at rhsoft dot net
well, having logfiles in C:\Windows\temp\PHP72_errors.log must be a Windows attitude, i am out
here...
------------------------------------------------------------------------
[2018-07-05 20:17:03] mbiebl at messageconcept dot com
Well, even if I pre-create the log file somehow (say in the application installer), it's not
unthinkable that the admin cleans up C:\Windows\Temp at some point (along with the log file). So
I'd need a separate daemon which is running all the time and watches C:\Windows\Temp and
immediately re-creates the file.
Otherwise, on the next connection attempt the file will be created by php with the wrong permissions
again leading to a very hard to debug problem for the admin.
------------------------------------------------------------------------
[2018-07-05 19:55:13] spam2 at rhsoft dot net
where would you store and delay them? logs are written when they happen
just make sure that your defined logfiles exist from the begin and have the correct permissions and
you are done
------------------------------------------------------------------------
[2018-07-05 19:53:09] mbiebl at messageconcept dot com
Just tried to use syslog but then got only 500 errors (php-cgi.exe crashing).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=76573
--
Edit this bug report at https://bugs.php.net/bug.php?id=76573&edit=1