Bug #60254 [Asn->Wfx]: PHPIniDir format incorrect
| From: | cmb@php.net | Date: | Tue, 09 Jun 2015 16:04:46 +0000 |
| Subject: | Bug #60254 [Asn->Wfx]: PHPIniDir format incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193251@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60254&edit=1
ID: 60254
Updated by: cmb@php.net
Reported by: p dot duda at lumasenseinc dot com
Summary: PHPIniDir format incorrect
-Status: Assigned
+Status: Wont fix
Type: Bug
Package: Windows Installer
Operating System: Window 7
PHP Version: 5.3.8
-Assigned To: jmertic
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This ticket is obsolete, because Microsoft installer binaries
(.msi) are not distributed anymore as of PHP 5.4.0.
Previous Comments:
------------------------------------------------------------------------
[2012-01-12 23:44:02] agvulp-forums at yahoo dot com
Confirmed.
I just installed Apache 2.2 and PHP 5.3.8 in Windows.
The PHP installer asks for the location of the Apache httpd.conf file, so it can amend these lines
to the end of it.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:\PHP\"
LoadModule php5_module "C:\WEB\PHP\php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
However. Apache 2.2 (and others?) anticipates forward slashes instead of back slashes, and will
transmogrify the two internally when it actually goes to read the file. (Apache literally replaces
'\' with '/' and '/' with '\' when compiled for Windows.)
Solution. The above line should be:
PHPIniDir "C:/PHP/"
Eric
------------------------------------------------------------------------
[2011-11-09 20:56:17] p dot duda at lumasenseinc dot com
Description:
------------
When installing php into a different directory on Windows the installer amends the httpd.conf file
with the PHPIniDir using backslashes in the path. This renders the directive useless, and php looks
for the ini file elsewhere. Changing the path to forward slashes resolves the problem.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60254&edit=1