php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39191 PHP.ini doesnt load
Submitted: 2006-10-18 23:30 UTC Modified: 2007-01-15 01:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: pholm at resmc dot com Assigned:
Status: No Feedback Package: PHP options/info functions
PHP Version: 5.1.6 OS: Windows 2003 Server
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: pholm at resmc dot com
New email:
PHP Version: OS:

 

 [2006-10-18 23:30 UTC] pholm at resmc dot com
Description:
------------
PHP.ini doesnt load at startup when IIS 6 is configured with a virtual directory and the doc_root parameter is set.

Reproduce code:
---------------
Tested basic php.ini files with 3 lines:
doc_root = "D:\WWWroot"
extension_dir = "D:\php5\ext"
cgi.force_redirect = 0

Nothing from the file is loaded!


When commentting out doc_root, the whole file is loaded;
tested the same with the complete php.ini-recommended,
gave the same result!

Expected result:
----------------
Should have loaded other parameters at least.

Note: It is assumed that this issue relates to having and virtual directory for the PHP code files under IIS6

Actual result:
--------------
Resolution found with:
- commentting out doc_root
- to resolve limited directory entry use:
  open_basedir = D:\WWWroot

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-19 07:42 UTC] tony2001@php.net
Where did you put it? What is the valie of "php.ini" in phpinfo()?
 [2006-10-19 07:53 UTC] pholm at resmc dot com
Initially I used all the default values and locations;
Put php.ini in both the D:\php folder and c:\Windows;
Just to check if it had to do anything with the location it was loaded from;
Later I added the PHPRC environment variable to point to D:\php and used only that location;
Believe me.... I have spent 5 days and nites testing all possible combinations, before filling this error report!!!
And indeed... I used (when php was loaded) the phpinfo() to verify the loaded location as well!
 [2006-10-19 07:58 UTC] tony2001@php.net
Please follow the directions in the last comment here:
http://bugs.php.net/bug.php?id=37919

And I have to ask it again (since you didn't reply):
What is the valie of "php.ini" in phpinfo()?
 [2006-10-19 08:17 UTC] pholm at resmc dot com
Indeed forgot to mention that in the current phpinfo() the value of the php.ini location is: D:\php5\php.ini;
Just to emphasise: all variables under phpinfo() are loaded just as I have configured them in the php.ini file;
All setup instructions have been followed to the letter, included about a dozen other installation instructions (sometimes conflicting) which I have found on the internet,
and also from 3 books that I bought on how to install php (being: PHP5 from Wiley Publishing,  Howto PHP&MySQL from McGrawHill and PHP5 easy steps from Computer Step)
But.. the very moment that I uncomment and use doc_root with any valid value, then php will not load anything from php.ini.
 [2007-01-07 18:56 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-01-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC