Bug #52707 [Opn->Bgs]: php.ini not being read
| From: | pajoye@php.net | Date: | Thu, 26 Aug 2010 12:42:53 +0000 |
| Subject: | Bug #52707 [Opn->Bgs]: php.ini not being read | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153811@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52707&edit=1
ID: 52707
Updated by: pajoye@php.net
Reported by: arijit dot sarbagna at gmail dot com
Summary: php.ini not being read
-Status: Open
+Status: Bogus
Type: Bug
Package: *Configuration Issues
Operating System: Win XP
PHP Version: 5.2.14
Block user comment: N
New Comment:
c:\windows is the default. But as the 'loaded configuration' entry says,
D:\Php\php.ini is loaded, which is what you expect.
Previous Comments:
------------------------------------------------------------------------
[2010-08-26 14:39:25] arijit dot sarbagna at gmail dot com
Description:
------------
Installed php-5.2.14-Win32.zip with Apache 2.2.16. Noticed that php.ini
was not being read. Though running phpinfo() showed:
--------------------------------------------------------
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File D:\Php\php.ini
--------------------------------------------------------
Interestingly, even if I delete/rename the pointed php.ini, Apache still
restarts fine without any error & my phpinfo shows:
--------------------------------------------------------
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File
--------------------------------------------------------
Though, there is no php.ini at C:\Windows.
Even when I tried putting just one (& only one) php,ini at C:\Windows,
it was still not reading the php.ini (e.g. my changes to add/remove any
extension was not reflecting).
My Apache httpd.config reads like:
--------------------------------------------------------
LoadModule php5_module "D:/Php/php5apache2_2.dll"
<IfModule php5_module>
PHPIniDir "D:/Php/php.ini"
<Location />
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
</Location>
</IfModule>
--------------------------------------------------------
When I removed php-5.2.14 by freshly downloaded
php-5.3.3-Win32-VC9-x86.zip content, it started to work per expectation
i.e. php.ini was correctly evaluated/read.
Expected result:
----------------
php.ini should be evaluated/read
Actual result:
--------------
php.ini was not being evaluated/read
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52707&edit=1