php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33571 PHPIniDir directive appears to be ignored
Submitted: 2005-07-05 03:09 UTC Modified: 2005-07-06 11:05 UTC
From: colin at encode dot net dot au Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.0b2 OS: Windows XP Professional SP2
Private report: No CVE-ID: None
 [2005-07-05 03:09 UTC] colin at encode dot net dot au
Description:
------------
Hello,

I understand this is a beta version of PHP but felt I should report that it appears the PHPIniDir Apache configuration directive is ignored by this release of PHP.  I installed PHP according to the install.txt instructions and configured the httpd.conf of Apache 2.0.54 using the directives below:

#
# Load PHP5 module:
#
LoadModule php5_module "C:/PHP/php5apache2.dll"

#
# To use PHP scripts:
#
AddType application/x-httpd-php .php

#
# Define php.ini path:
#
PHPIniDir "C:/PHP"

To begin with I renamed the "php.ini-recommended" file to "php.ini" within the "C:/PHP" folder.  PHP would not load correctly however, and upon accessing a phpinfo test page within the browser I would receive the PHP code itself within the browser window, i.e:

<?php phpinfo(); ?>

...would appear in the page source.  I also tried adding the PHP path to the "path" and "PHPRC" environment variables with no success.  Upon removing the php.ini from "C:/PHP", PHP appeared to load but would report "C:\WINDOWS" in the "Configuration File (php.ini) Path" field of the phpinfo() output.  Note, there is no php.ini file in "C:\WINDOWS".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-05 09:14 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.
 [2005-07-06 03:53 UTC] colin at encode dot net dot au
Hello Derick,

Since I just followed the same installation process with PHP 5.0.4, and it *worked* as expected, I would say that this does imply a bug in PHP 5.1.0b2, wouldn't you agree?

Regards,

Colin.
 [2005-07-06 11:05 UTC] tony2001@php.net
Your problem has nothing to do with php.ini and PHPIniDIr.
Re-read the installation instructions and re-install PHP properly.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 05:01:29 2024 UTC