php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #21244 Information about placing php.ini not accurate
Submitted: 2002-12-28 07:54 UTC Modified: 2004-07-27 15:10 UTC
From: cg at gordimer dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.0 OS: Win XP
Private report: No CVE-ID: None
 [2002-12-28 07:54 UTC] cg at gordimer dot net
The documenation states in http://www.php.net/manual/en/install.windows.php about php.ini location on Windows:

Copy your chosen ini file (see below) to your '%WINDOWS%' directory on Windows 9x/Me or to your '%SYSTEMROOT%' directory under Windows NT/2000/XP and rename it to php.ini. Your '%WINDOWS%' or '%SYSTEMROOT%' directory is typically: 

[...]

However, php.ini can also be placed in to the directory where php is installed. This is more error save, because one does never have an old php.ini file dumpling in the windows directory. Additionally it's possible to run multiple php installations with different ini settings on the same system if php.ini is placed in the php binary directory.

On the same page the list of php extensions is rather outdated. Some extensions from php3 are still there, some others are missing... I can try to compile a list as of 4.3.0 if you like.

Christoph

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-20 14:04 UTC] admin at internettech dot ca
When running multiple php installations with the php.ini file located in each install directory you must be sure to remove any path's from the system enviroment variables (Win). Otherwise you may find one installation trying to access anothers extensions etc., even if they are correctly declared in the individual .ini files.

Glen
 [2004-07-27 15:10 UTC] vrana@php.net
The Windows Install part is about to be rewriten. php.ini is searched in Windows directory, in Apache directory (if PHP is running as Apache module), in path specified by PHPRC environment variable and in path specified by registry entry HKLM\Software\PHP\IniFilePath.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 09:01:32 2024 UTC