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

Re: Apache ENV issue



Hello...

On Tue, 2004-06-22 at 10:49, Stephen Lawrence wrote:
> I have noticed that my apache web server is picking up different ENV 
> vars depending on how it is started. If I reboot the server, apache 
> starts with one set of ENV vars, and if I restart it from the command 
> line it inherits a different set of ENV.
> 
> I noticed this issue because one of my PHP/Oracle web pages fails to 
> connect to oracle fresh off a reboot. As soon as I stop/start apache as 
> root it works. I compared the ENV's and they are different.
> 

'/sbin/service httpd restart' keeps the ORAHOME env var?  It shouldn't

in
/etc/sysconfig/httpd

add:
ORAHOME=/opt/ora  #or whatever
export ORAHOME
#anything else

then reboot.  Does it work?



> Can anyone tell me why root ENV would not be used in both situations?
-- 
Christopher McCrory
 "The guy that keeps the servers running"
 
chrismcc pricegrabber com
 http://www.pricegrabber.com
 
Let's face it, there's no Hollow Earth, no robots, and
no 'mute rays.' And even if there were, waxed paper is
no defense.  I tried it.  Only tinfoil works.



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