From:             
Operating system: Win XP
PHP version:      5.2.14
Package:          *Configuration Issues
Bug Type:         Bug
Bug description:php.ini not being read

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 bug report at http://bugs.php.net/bug.php?id=52707&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52707&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52707&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52707&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52707&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52707&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52707&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52707&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52707&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52707&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52707&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52707&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52707&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52707&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52707&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52707&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52707&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52707&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52707&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52707&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52707&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52707&r=mysqlcfg

Reply via email to