php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15215 Wrong path for php.ini under Windows XP (Home and Professional)
Submitted: 2002-01-24 19:14 UTC Modified: 2002-02-28 00:00 UTC
Votes:6
Avg. Score:4.3 ± 1.5
Reproduced:5 of 6 (83.3%)
Same Version:2 (40.0%)
Same OS:4 (80.0%)
From: php at totti dot de Assigned:
Status: No Feedback Package: *Configuration Issues
PHP Version: 4.1.1 OS: Windows NT 5.1 (XP)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at totti dot de
New email:
PHP Version: OS:

 

 [2002-01-24 19:14 UTC] php at totti dot de
If you install the Windows binaries on Systems running Windows XP, PHP assumes that there is a system directory 'C:\winnt\' because of the version string reported by Windows (Windows NT 5.x). As there is no such Dir (under Win XP the System Dir is named 'C:\Windows\' by default), php.ini is not found. I couldn't find help in creating this dir and put the .ini file in. Also the 'php.ini' is not found if simply put in the path.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-27 15:05 UTC] phpbugs at gordimer dot net
This has never happened to me. My php.ini gets parsed whether it resides in windows directory (for sapi-version) or in php-directory for cgi. I'm using XP Pro, but it also works with NT 4 and non-standard windir-name (winntw).

Christoph
 [2002-01-27 15:11 UTC] sander@php.net
Do you mean the PHP installer?
Anyway, Christoph is right, it doesn't look at the version string but it just tries your Windows-directory. 
phpinfo() reports where it has found php.ini. Look at that path. It should really work if you place it in c:\windows.
 [2002-02-28 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-05-03 15:24 UTC] t dot johnson at intercall dot ie
I have incountered the same issue with php 5.1.2 and iis 6 on all 3 of our servers. The phpinfo() reports c:\windows as the location of php.ini on all installations which were manually configured. the error occurs on clean systems with nothin but OS, IIS and pho installed. Does anyone have any further info on this problem?
 [2006-09-08 04:07 UTC] joebeazelman at hotmail dot com
Ditto. I am running XP with IIS 5.  I removed all traces of php.ini from my system and only left a copy in the root folder of my php 4 installation and phpinfo still said it found the php.ini file in my windows directory.
 [2006-10-09 18:33 UTC] registered at morphatic dot com
I had the same problem.  It turned out that I had improperly defined the PHPRC environment variable.  Make sure you pay attention to this FAQ from the Manual installation instructions:
http://www.php.net/manual/en/faq.installation.php#faq.installation.phprc
 [2009-05-07 02:02 UTC] arturo_b at hotmail dot com
When i ran phpinfo, its gave me a wrong address "c:/php5" value in extension_dir and none value in Configuration File (php.ini) Path, so it never loaded the extensions and connected to mysql; finally i tried adding a new variable named PHPRC with value "C:/PHP" in system environment variable, so windows should read the php.ini inside "C:/PHP" and it did work!!!!!!!!!!!!

Make sure you pay attention to this FAQ
from the Manual installation instructions:
http://www.php.net/manual/en/faq.installation.php#faq.installation.phprc
 [2010-01-12 02:54 UTC] jimmterry at gmail dot com
Mine, even I set "PHPRC", still doesn't work. It runs on Win2k3 IIS 6. It's PHP 5.2.12. Any suggestion from u guys? Thanks in advanced
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC