php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54144 add php.ini option for syslog program name
Submitted: 2011-03-03 01:18 UTC Modified: 2021-10-15 17:50 UTC
Votes:5
Avg. Score:4.0 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: info at mschuette dot name Assigned: cmb (profile)
Status: Closed Package: PHP options/info functions
PHP Version: Irrelevant OS: all unix-likes
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: info at mschuette dot name
New email:
PHP Version: OS:

 

 [2011-03-03 01:18 UTC] 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.


Patches

patch-ext_standard_syslog.diff (last revision 2011-03-03 00:19 UTC by info at mschuette dot name)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-03 11:24 UTC] tyrael@php.net
-Assigned To: +Assigned To: tyrael
 [2021-10-13 16:38 UTC] cmb@php.net
-Status: Assigned +Status: Feedback -Assigned To: tyrael +Assigned To: cmb
 [2021-10-13 16:38 UTC] cmb@php.net
Isn't a call to openlog()[1] a better idea?

[1] <https://www.php.net/openlog>
 [2021-10-15 17:31 UTC] info at mschuette dot name
-Status: Feedback +Status: Assigned
 [2021-10-15 17:31 UTC] 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-15 17:50 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2021-10-15 17:50 UTC] cmb@php.net
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>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 15:01:27 2025 UTC