Re: Environment variables...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, March 15, 2007 8:18 am, David BERCOT wrote:
> Le Wed, 14 Mar 2007 17:37:02 -0500 (CDT),
> "Richard Lynch" <ceo@xxxxxxxxx> a écrit :
>> PHP runs as its own user in its own environment.
>>
>> Stuff you cram into your environment has no effect on that, as it
>> should be.
>>
>> If you alter the environment of the PHP user you might get what you
>> want.
>>
>> You may also be able to use http://php.net/setenv
>>
>> And http://php.net/getenv is probably faster than your exec.
>>
>> Setting the env up in httpd.conf and/or php.ini and/or .htaccess
>> should work.  httpd.conf for sure, others I think.
>
> Yes, great... Now, I have another problem ;-)
> In Debian, everything is ok. I put my variable
> in /etc/apache2/httpd.conf.
>
> But on RedHat, I don't know which file is concerned...
>
> So, I've searched in php.ini, but I did not find a place where I can
> put variables...
>
> Do you know which is the equivalent of /etc/apache2/httpd.conf on
> RedHat ?
> And is it possible (and how ;-)) to put variables in the php.ini ?

It depends on who built the RPM, or if you used source to install...

/etc/httpd.conf
/etc/httpd/httpd.conf
/usr/local/lib/apache/conf/httpd.conf
.
.
.

Perhaps you can find the httpd.conf file with either of:

locate httpd.conf
find / -name httpd.conf -print

The first one will be fast, if it's been installed.
The second one could take forever, if there are many files on your drive.

I have no idea about setting env values in php.ini...

.htacces, though, should be quick and easy to try out...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux