Edit report at https://bugs.php.net/bug.php?id=61435&edit=1

 ID:                 61435
 Comment by:         lekensteyn at gmail dot com
 Reported by:        php at grange dot me
 Summary:            PHP-FPM logs are not readable by group/others by
                     default
 Status:             Assigned
 Type:               Feature/Change Request
 Package:            FPM related
 PHP Version:        5.3.10
 Assigned To:        fat
 Block user comment: N
 Private report:     N

 New Comment:

Patch refreshed for context in PHP 5.5.3 (no other changes). Could you please 
consider fixing this bug that has been present for over a year? A patch is 
available.


Previous Comments:
------------------------------------------------------------------------
[2013-02-03 12:06:15] lekensteyn at gmail dot com

I have attached a new patch (the old one was incompatible with 5.3). I have 
also changed "a+" to "a" as fpm_php_trace_dump is only writing to the file, not 
reading. According to the manpage, fdopen must have a mode that is compatible 
with the fd. In the old patch, there was a mismatch between a+ and O_WRONLY.

------------------------------------------------------------------------
[2012-03-19 11:29:10] php at grange dot me

Description:
------------
Hello,

errorlog, slowlog and accesslog are created with permissions set to 0600 by 
default on PHP 5.3 and 5.4. 

Those files are often owned by root (at least in our setup but probably in a 
lot 
of setups), which makes it not convenient for developers to read them. They may 
contain useful information, such as PHP crashes.

Failing to fix it with umask in php-fpm init script (not mentioning the fact 
that it would affect php scripts too), I wrote a simple patch against 
PHP-5.3.10 
to modify open() calls with 0644 perms.

Note that Apache uses 0644 by default for its logs.

Olivier



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61435&edit=1

Reply via email to