#39191 [Fbk->Opn]: PHP.ini doesnt load
| From: | pholm at resmc dot com | Date: | Thu, 19 Oct 2006 08:17:51 +0000 |
| Subject: | #39191 [Fbk->Opn]: PHP.ini doesnt load | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103721@lists.php.net to get a copy of this message | ||
ID: 39191
User updated by: pholm at resmc dot com
Reported By: pholm at resmc dot com
-Status: Feedback
+Status: Open
Bug Type: PHP options/info functions
Operating System: Windows 2003 Server
PHP Version: 5.1.6
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-10-19 07:58:58] 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 07:53:19] 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:42:56] tony2001@php.net
Where did you put it? What is the valie of "php.ini" in phpinfo()?
------------------------------------------------------------------------
[2006-10-18 23:30:41] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39191&edit=1