For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > September 2004 > #29694 [Com]: SetEnv PHPRC in httpd.conf has no effect









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #29694 [Com]: SetEnv PHPRC in httpd.conf has no effect
Ipa At Beta Dot Lt

2004-09-28, 3:58 am

ID: 29694
Comment by: ipa at beta dot lt
Reported By: mvl22 at mailinator dot com
Status: Open
Bug Type: Documentation problem
Operating System: Windows XP
PHP Version: 5.0.1
New Comment:

Tried 5.0.2 + apache 1.3.27 (instead of 5.0.1)

1. putting php.ini into apache dir started working
2. adding PHPRC into environment works (Rasmus was right)


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

[2004-09-27 09:57:32] vrana@php.net

Result of a test under Windows XP:

Apache 2.0.50 - PHP 5: SetEnv PHPRC works
Apache 1.3.27 - PHP 5: SetEnv PHPRC works
Apache 1.3.27 - PHP 4: SetEnv PHPRC doesn't work
Apache 2.0.50 - PHP 4: SetEnv PHPRC doesn't work

Strange, it's different from what other people say.

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

[2004-09-27 01:44:07] rasmus@php.net

PHP checks the real environment, not the apache environment for PHPRC.
Changing this to a documentation problem.

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

[2004-09-26 12:35:55] astervick at infinito dot it

PHP 5.0.2
W2000 with all the patches about security
Apache 1.3

Php.ini is not read where I tell apache with setenv PHPRC..
in httpd.conf

I put it in c:\WINNT and php.ini is read and it's ok

Thanks to people who wrote about this before me!
Ciao

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

[2004-09-10 19:24:13] bgleason at mwgl dot org

Same here... It kept trying to set the directory to c:\php5 for me even
though I specified d:\php...

windows 2003 server running apache 1.3.31. If you need any other
information just shoot me an email...

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

[2004-09-03 18:29:18] ipa at beta dot lt

I have same problem in same configuration, and can add that it doesn't
see php.ini file in apache directory. Only "C:/windows" (default), or
path set in registry key "HKLM\Software\PHP\IniFilePath" works for me.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29694

--
Edit this bug report at http://bugs.php.net/?id=29694&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com