Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #39638 : Configuring PHPIniDir causes error
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 10th September 09:29
php-bugs@lists.php.net (huichunwuca at yahoo dot
External User
 
Posts: 1
Default #39638 : Configuring PHPIniDir causes error



From: huichunwuca at yahoo dot com
Operating system: Windows XP Home Edition SP 2
PHP version: 5.2.0
PHP Bug Type: *Configuration Issues
Bug description: Configuring PHPIniDir causes error

Description:
------------
My php.ini file is located in c:/software/PHP. If I DO NOT
specify PHPIniDir in Apache configuration file httpd.conf,
my php page, which simply has a phpInfo() function, is displayed correctly
except that "Configuration File (php.ini) Path" points to C:/Windows. There
is NO php.ini
file in C:/Windows.

If I DO NOT specify PHPIniDir but php.ini file IS in C:/Windows, I got a
blank page.

If I DO specify PHPIniDir as follows:
PHPIniDir "C:/software/PHP"
Then I got a blank page -- unless php.ini file is NOT in
C:/software/PHP

I do not have any other php.ini file elsewhere and this is
my first PHP installation ever on this machine.


Reproduce code:
---------------
httpd.conf -- only the lines I added

LoadModule php5_module c:/software/PHP/php5apache2_2.dll
AddType application/x-httpd-php .php
#configure the path to php.ini
PHPIniDir "C:/software/PHP"

test1.php:

<html>
<head>
<title>Example #1 TDavid's Very First PHP Script ever!</title>
</head>
<body>
<? phpInfo();?>
</body>
</html>

Expected result:
----------------
PHP module details.

Actual result:
--------------
A blank page if PHPInitDir is configured correctly

An expected page with PHP module details if PHPInitDir is NOT configured
and php.ini is NOT in C:/Windows

--
Edit bug report at http://bugs.php.net/?id=39638&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39638&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39638&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39638&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39638&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39638&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39638&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39638&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39638&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39638&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39638&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39638&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39638&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39638&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39638&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39638&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39638&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39638&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39638&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39638&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39638&r=mysqlcfg
  Reply With Quote


  sponsored links


2 10th September 09:30
php-bugs@lists.php.net (huichunwuca at yahoo dot
External User
 
Posts: 1
Default #39638 : Configuring PHPIniDir causes error



ID: 39638
User updated by: huichunwuca at yahoo dot com
Reported By: huichunwuca at yahoo dot com
Status: Open
Bug Type: *Configuration Issues
Operating System: Windows XP Home Edition SP 2
PHP Version: 5.2.0
New Comment:

I copied php.ini-reocmmended and renamed it php.ini.
No modification is made to php.ini.


Previous Comments:
------------------------------------------------------------------------

[2006-11-26 18:26:20] huichunwuca at yahoo dot com

Description:
------------
My php.ini file is located in c:/software/PHP. If I DO NOT
specify PHPIniDir in Apache configuration file httpd.conf,
my php page, which simply has a phpInfo() function, is displayed
correctly except that "Configuration File (php.ini) Path" points to
C:/Windows. There is NO php.ini
file in C:/Windows.

If I DO NOT specify PHPIniDir but php.ini file IS in C:/Windows, I got
a blank page.

If I DO specify PHPIniDir as follows:
PHPIniDir "C:/software/PHP"
Then I got a blank page -- unless php.ini file is NOT in
C:/software/PHP

I do not have any other php.ini file elsewhere and this is
my first PHP installation ever on this machine.


Reproduce code:
---------------
httpd.conf -- only the lines I added

LoadModule php5_module c:/software/PHP/php5apache2_2.dll
AddType application/x-httpd-php .php
#configure the path to php.ini
PHPIniDir "C:/software/PHP"

test1.php:

<html>
<head>
<title>Example #1 TDavid's Very First PHP Script ever!</title>
</head>
<body>
<? phpInfo();?>
</body>
</html>

Expected result:
----------------
PHP module details.

Actual result:
--------------
A blank page if PHPInitDir is configured correctly

An expected page with PHP module details if PHPInitDir is NOT
configured and php.ini is NOT in C:/Windows


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=39638&edit=1
  Reply With Quote
3 10th September 10:46
tony2001
External User
 
Posts: 1
Default #39638 : Configuring PHPIniDir causes error


ID: 39638
Updated by: tony2001@php.net
Reported By: huichunwuca at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: Windows XP Home Edition SP 2
PHP Version: 5.2.0
New Comment:

http://www.php.net/manual/en/ini.core.php
See description of "short_open_tag" ini option.


Previous Comments:
------------------------------------------------------------------------

[2006-11-26 19:47:46] huichunwuca at yahoo dot com

I copied php.ini-reocmmended and renamed it php.ini.
No modification is made to php.ini.

------------------------------------------------------------------------

[2006-11-26 18:26:20] huichunwuca at yahoo dot com

Description:
------------
My php.ini file is located in c:/software/PHP. If I DO NOT
specify PHPIniDir in Apache configuration file httpd.conf,
my php page, which simply has a phpInfo() function, is displayed
correctly except that "Configuration File (php.ini) Path" points to
C:/Windows. There is NO php.ini
file in C:/Windows.

If I DO NOT specify PHPIniDir but php.ini file IS in C:/Windows, I got
a blank page.

If I DO specify PHPIniDir as follows:
PHPIniDir "C:/software/PHP"
Then I got a blank page -- unless php.ini file is NOT in
C:/software/PHP

I do not have any other php.ini file elsewhere and this is
my first PHP installation ever on this machine.


Reproduce code:
---------------
httpd.conf -- only the lines I added

LoadModule php5_module c:/software/PHP/php5apache2_2.dll
AddType application/x-httpd-php .php
#configure the path to php.ini
PHPIniDir "C:/software/PHP"

test1.php:

<html>
<head>
<title>Example #1 TDavid's Very First PHP Script ever!</title>
</head>
<body>
<? phpInfo();?>
</body>
</html>

Expected result:
----------------
PHP module details.

Actual result:
--------------
A blank page if PHPInitDir is configured correctly

An expected page with PHP module details if PHPInitDir is NOT
configured and php.ini is NOT in C:/Windows


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=39638&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666