Edit report at http://bugs.php.net/bug.php?id=52707&edit=1
ID: 52707 User updated by: arijit dot sarbagna at gmail dot com Reported by: arijit dot sarbagna at gmail dot com Summary: php.ini not being read Status: Bogus Type: Bug Package: *Configuration Issues Operating System: Win XP PHP Version: 5.2.14 Block user comment: N New Comment: That is what my expectation was & I assumed it was reading the php.ini from D:\Php\php.ini. But as I stated, it wasn't reading it actually (that is why logged it here - not sure why it was behaving like this). Previous Comments: ------------------------------------------------------------------------ [2010-08-26 14:42:52] paj...@php.net c:\windows is the default. But as the 'loaded configuration' entry says, D:\Php\php.ini is loaded, which is what you expect. ------------------------------------------------------------------------ [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