Req #54144 [Asn->Csd]: add php.ini option for syslog program name
Edit report at https://bugs.php.net/bug.php?id=54144&edit=1
ID: 54144
Updated by: cmb@php.net
Reported by: info at mschuette dot name
Summary: add php.ini option for syslog program name
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: PHP options/info functions
Operating System: all unix-likes
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks for the swift reply, and also explaining the context!
> I assume that use case is no longer relevant today, certainly it
> is much less common than it used to be.
Likely the latter, but it seems that such shared hosting setups
are still in use.
> IMHO this request ticket can be closed.
I'll do. For those still needing this, consider to use
auto_prepend_file[1].
[1] <https://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file>
Previous Comments:
------------------------------------------------------------------------
[2021-10-15 17:31:04] info at mschuette dot name
The context of this feature request was a shared hosting setup.
In that context I wanted a central administrative control and could not trust users (or their
wordpress, phpBB, etc.) to set the correct openlog() parameters.
I assume that use case is no longer relevant today, certainly it is much less common than it used to
be.
IMHO this request ticket can be closed.
------------------------------------------------------------------------
[2021-10-13 16:38:57] cmb@php.net
Isn't a call to openlog()[1] a better idea?
[1] <https://www.php.net/openlog>
------------------------------------------------------------------------
[2011-03-03 01:18:12] info at mschuette dot name
Description:
------------
It would be useful to configure the syslog program name in php.ini (or httpd.conf for mod_php).
The appended patch adds two config variables 'syslog.program' and 'syslog.pid'.
I am using it for one year now on a shared webserver; it enables me to use syslog for central log
collection, associate logged errors with users, and give all users access to their own log data.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54144&edit=1
Thread (4 messages)