#41408 [Asn->Csd]: PHPIniDir Uses Backslashes in httpd.conf so can't find php.ini
| From: | jmertic@php.net | Date: | Wed, 16 May 2007 18:15:38 +0000 |
| Subject: | #41408 [Asn->Csd]: PHPIniDir Uses Backslashes in httpd.conf so can't find php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112718@lists.php.net to get a copy of this message | ||
ID: 41408
Updated by: jmertic@php.net
Reported By: alison dot holloway at oracle dot com
-Status: Assigned
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: Windows XP SP2
PHP Version: 5.2.2
Assigned To: jmertic
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-05-16 17:38:56] jmertic@php.net
Nevermind that, snaps isn't building a working installer at the moment.
I'm going to get the installer respun for 5.2.2 here shortly.
------------------------------------------------------------------------
[2007-05-16 17:17:39] jmertic@php.net
Try latest installer from snaps to see if it does the correct
behavior.
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2007-05-16 12:47:39] jmertic@php.net
What is the value of PHPIniDir before you make the change?
------------------------------------------------------------------------
[2007-05-16 11:54:31] alison dot holloway at oracle dot com
Description:
------------
The httpd.conf files in Apache2 uses backslashes in the PHPIniDir
parameter, so the path for php.ini is set to C:\Windows, instead of
where PHP is installed. This means that no extensions or configuration
changes are made. Only the default PHP settings are available.
While there are some similar bugs (Bug #39799: Windows installer does
not set PHPIniDir properly), they suggest the fix is in this release,
but it still doesn't work as expected, so continuing with logging this
bug.
Reproduce code:
---------------
Install Apache 2.0.59 on Windows XP Pro SP2.
Install PHP 5.2.2 using .msi installer.
Create phpinfo() file and check the location of the php.ini file.
Location of php.ini is set to C:\WINDOWS.
Change following line in httpd.conf
PHPIniDir "C:\Program Files\PHP\"
Save and restart Apache.
The location of php.ini is now set correctly to C:\Program
Files\PHP\php.ini.
All extensions and configuration is now correct.
Expected result:
----------------
Expected extensions to be loaded, but were not.
Actual result:
--------------
No extensions loaded.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41408&edit=1