php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31082 PHPRC variable has no affect
Submitted: 2004-12-14 05:12 UTC Modified: 2004-12-19 23:00 UTC
From: djslakor at hotmail dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.3.10RC2 OS: Windows XP Professional SP 2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: djslakor at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-12-14 05:12 UTC] djslakor at hotmail dot com
Description:
------------
As documented in install.txt:

Adding:
SetEnv PHPRC C:/php

to httpd.conf 

OR

setting PHPRC as a system variable 

both have no affect in changing the location of php.ini.  For example, if php.ini resides in C:/php, using either of the above methods does not work, and default values are loaded instead. 

php.ini _is_ however recognized if it is placed in %systemroot% or the web server root (i.e. c:\apache).

Thanks




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-15 01:20 UTC] sniper@php.net
If you're using Apache2 you can always add this to your httpd.conf:

PHPINIDir "conf"

"The Apache 2.0 PHP module supports a new configuration directive that allows an admin to override the php.ini search path. For example, place your php.ini file in Apache's ServerRoot/conf directory and add this to your httpd.conf file:
    PHPINIDir "conf"
"

Also, you can specify it in registry..also mentioned in install.txt. 

Check also that php.ini is readable by the user as what your webserver runs as.

In any case, PHPRC works fine here, so no bug here either.

 [2004-12-19 23:00 UTC] djslakor at hotmail dot com
Indeed I am using Apache 1.3.33, in which the below description applies.  I suppose the feature only works with Apache2?  Thanks,

-djs
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 12:01:29 2024 UTC