#33571 [NEW]: PHPIniDir directive appears to be ignored
| From: | colin at encode dot net dot au | Date: | Tue, 05 Jul 2005 01:09:22 +0000 |
| Subject: | #33571 [NEW]: PHPIniDir directive appears to be ignored | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-81386@lists.php.net to get a copy of this message | ||
From: colin at encode dot net dot au
Operating system: Windows XP Professional SP2
PHP version: 5.1.0b2
PHP Bug Type: Apache2 related
Bug description: PHPIniDir directive appears to be ignored
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".
--
Edit bug report at http://bugs.php.net/?id=33571&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33571&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33571&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33571&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33571&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33571&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33571&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33571&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33571&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33571&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33571&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33571&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33571&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33571&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33571&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33571&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33571&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33571&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33571&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33571&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33571&r=mysqlcfg