For Programmers: Free Programming Magazines  


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

2004-09-28, 4:01 pm

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

With Apache/1.3.31 (Win32) PHP/5.0.2 setting PHPRC did not work.
Setting the system enviroment variable did work.

I'm not sure what you did vrana, but I think if it doesn't work in all
cases it's best to pretend it doesn't exist!

I've changed the documentation to reflect these new steps.

Thanks for the bug report and help making our documentation better.


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

[2004-09-27 20:14:48] ipa at beta dot lt

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)

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

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

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

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