php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48407 Setting php.ini location using the WIndows registry explation unclear
Submitted: 2009-05-27 15:22 UTC Modified: 2009-05-29 14:08 UTC
From: xilaworp at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xilaworp at gmail dot com
New email:
PHP Version: OS:

 

 [2009-05-27 15:22 UTC] xilaworp at gmail dot com
Description:
------------
The terminology used to describe setting the registry value for php.ini is somewhat misleading.

Had some trouble figuring out how to set the php.ini file path under Windows Server 2003 / IIS6. Turns out the way it works is to create a registry KEY named 

HKLM/PHP/x.y.z or  
HKLM/PHP/x.y. or  
HKLM/PHP/x.

Where x, y and z are versions as described 

and a STRING VALUE named IniFilePath

Where you enter just the path to the php.ini file.

using the Windows REGEDIT Tool 

Backslashes should be entered twice ie C:\\PHP

The Windows registry consists of hierarchical keys (Think folders/directories) which can hold values one type of which is a string calue.

The documentation talks about registry locations which is ambiguous (are they keys or values?) and does not conform to standard MS terminology.

Reproduce code:
---------------
---
From manual page: install.windows.iis
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-29 14:08 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=f16b57bc6b3b12a1fa2eabe4c1b601a265fdb67c
Log: Better explanation of Windows Registry keys for php.ini. Fix #48407
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 22:00:02 2026 UTC