#35329 [Com]: php.ini location changed between 5.0 and 5.1

From: Date: Thu, 01 Dec 2005 17:13:37 +0000
Subject: #35329 [Com]: php.ini location changed between 5.0 and 5.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89593@lists.php.net to get a copy of this message
 ID:               35329
 Comment by:       thejkwhosaysni at gmail dot com
 Reported By:      cjbj at hotmail dot com
 Status:           Feedback
 Bug Type:         *General Issues
 Operating System: win32
 PHP Version:      5.1.0
 New Comment:

I have exactly the same problem with both php5.1.0 and php5.1.1.
Putting php.ini into apache2/bin does not work either. Nor the php
directory itself.


Previous Comments:
------------------------------------------------------------------------

[2005-11-28 17:10:28] rrichards@php.net

CWD (why it checked the Apache dir) is now only searched when running
under CLI. Either this is really a bug or FAQ in the manual should be
changed to say to use Apache/bin (path is checked in 5.0 and 5.1 at
least since its the binary location).

------------------------------------------------------------------------

[2005-11-28 15:19:43] wez@php.net

Chris, can you try using filemon from sysinternals to see if it's
trying to access alternate php.ini paths?

------------------------------------------------------------------------

[2005-11-23 02:54:38] cjbj at hotmail dot com

When I upgraded from 5.5 to 5.1, I had to

0. Unzip 5.1 to c:\php5-win32-latest

1. Edit c:/Program Files/Apache Group/Apache2/conf/httpd.conf and
change:
     LoadModule php5_module
"c:/php5.0-win32-200511031730/php5apache2.dll"
   to
     LoadModule php5_module "c:/php5-win32-latest/php5apache2.dll"

2. Edit c:\Program Files\Apache Group\Apache2\php.ini and change:
     extension_dir = "c:\php5.0-win32-200511031730\ext"
   to
     extension_dir = "c:\php5-win32-latest\ext"

3. Copy c:\Program Files\Apache Group\Apache2\php.ini to c:\WINDOWS

Step 3 was not needed when upgrading any 5.0.x to 5.0.y.

------------------------------------------------------------------------

[2005-11-22 13:10:42] cjbj at hotmail dot com

Description:
------------
PHP 5.0 on Windows reads a php.ini located at
c:/Program Files/Apache Group/Apache/conf/httpd.conf
or c:/Program Files/Apache Group/Apache/conf2/httpd.conf.

PHP 5.1.0RC7-dev (Nov 22 2005 08:23:50) does not read
this php.ini.  Phpinfo() shows php.ini as "C:\WINDOWS",
i.e. it has not found a php.ini

This is a backward compatibility breakage I didn't notice
documented in Steph's 5.1 upgrade notes.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35329&edit=1


Thread (13 messages)

« previous php.bugs (#89593) next »