Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 42830

Summary: /etc/php.ini should be %config(noreplace)
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: phpAssignee: Phil Copeland <copeland>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 1.0Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-12-07 23:58:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2001-05-30 10:43:40 UTC
Description of Problem:

/etc/php.ini will be overridden at every update and so e.g. a global
`safe_mode = On' will be disabled.

I suggest to mark this file as '%config(noreplace) /etc/php.ini'


Additional Information:
	
$ rpm -q php
php-4.0.5-1

Comment 1 Bill Nottingham 2001-12-08 03:41:07 UTC
This is fixed in current packages.

Comment 2 Dan Elder 2004-08-05 18:07:25 UTC
This is still a problem with RHEL 3 (x86) with the latest php rpms
built from the srpm.  Instead of saving the new php.ini at
php.ini.rpmnew it overwrites it and moves it to php.ini.rpmsave.

Comment 3 Joe Orton 2004-08-10 15:44:47 UTC
Dan, could you open a new bug against PHP in RHEL3 if you are seeing
issues with php.ini over upgrades?

php.ini is marked %config(noreplace) in the RHEL package.

%config(noreplace) %{_sysconfdir}/php.ini