Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#29694 [Opn]: SetEnv PHPRC in httpd.conf has no effect
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

Report this thread to moderator Post Follow-up to this message
Old Post
vrana@php.net
09-27-04 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:33 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.