Bug #60254 [Com]: PHPIniDir format incorrect
| From: | agvulp-forums at yahoo dot com | Date: | Thu, 12 Jan 2012 23:44:02 +0000 |
| Subject: | Bug #60254 [Com]: PHPIniDir format incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166411@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
Comment by: agvulp-forums at yahoo dot com
Reported by: p dot duda at lumasenseinc dot com
Summary: PHPIniDir format incorrect
Status: Assigned
Type: Bug
Package: Windows Installer
Operating System: Window 7
PHP Version: 5.3.8
Assigned To: jmertic
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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