For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > September 2004 > #29694 [Opn]: 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 [Opn]: SetEnv PHPRC in httpd.conf has no effect
vrana@php.net

2004-09-27, 8:55 am

ID: 29694
Updated by: vrana@php.net
Reported By: mvl22 at mailinator dot com
Status: Open
Bug Type: Documentation problem
Operating System: Windows XP
PHP Version: 5.0.1
New Comment:

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.


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

[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.

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

[2004-08-16 04:44:22] mvl22 at mailinator dot com

Description:
------------
http://www.php.net/manual/en/instal...ows.apache1.php
states

"
# specify the directory where php.ini is
SetEnv PHPRC C:/php
"

My httpd.conf has
SetEnv PHPRC "C:/program files/php"
in it and, after reboot, phpinfo () gives:

Configuration File (php.ini) Path C:\WINDOWS
but
PHPRC C:/program files/php
is shown (which is correct).

php.ini does exist at C:/program files/php/php.ini

Using c:/progra~1/php with or without a trailing slash does not change
the situation.

PHP5.0.1 is otherwise working fine.



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


--
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