php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31660 "SetEnv PHPRC " in apache 1.3.33 has not effect
Submitted: 2005-01-23 03:06 UTC Modified: 2005-01-23 03:18 UTC
From: paulo dot galvao at tutopia dot com dot br Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.10 OS: Win Xp Pro
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: paulo dot galvao at tutopia dot com dot br
New email:
PHP Version: OS:

 

 [2005-01-23 03:06 UTC] paulo dot galvao at tutopia dot com dot br
Description:
------------
My configuration:

Win Xp Pro - Portuguese - Brazil
Apache 1.3.33 and 2.0.52 installed
Php 4.3.10 and 5.0.3

All installation are following the instructions from the manual  downloaded from http://www.php.net/docs.php and generated: Thu Apr 15 13:13:36 2004.

With apache 2.0.52, all configuration is working for php 4.3.10 and 5.0.3.
But in apache 1.3.33 isn?t.When i set "SetEnv PHPRC C:/Apache/php4" in httpd.conf of apache 1.3.33 to specify the dir where the php.ini is located, and start apache, the php is getting the default configuration and not the configuration specified in C:/Apache/php4/php.ini.
I search for this problem and in http://www.bazzinet.info/WebserverA.html i see that SetEnv PHPRC could not work in some cases and the same problem ocurried with others developers in http://bugs.php.net/bug.php?id=29694.
Wel...a temporary solution  that i found is put the file php.ini in apache dir, then php works with the configuration that i specified.
My doubts:
Is it a bug?
Why this occurrence isn?t related in documentation?
Is it a problem with php or apache 1.3.33?
Is correct, say that the "SetEnv PHPRC " will never work?
Exist other way to specify the dir where php.ini is? 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-23 03:18 UTC] sniper@php.net
Apache bug. And it's an _environment_ variable. Set it for the environment you run apache from. (I don't remember how you do that in windows, use google)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 13:01:28 2025 UTC