httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James White" <>
Subject Re: [users@httpd] setting ORACLE_HOME
Date Mon, 02 Jul 2007 19:50:44 GMT
> On 02/07/07, James White <> wrote:
>> I am trying to install Oracle XE to run PHP scripts. I have read that it
>> is preferable to set ORACLE_HOME before starting Apache instead of using
>> putenv() in the PHP script. I have tried the recommended script.
>> ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
>> export ORACLE_HOME
>> echo "Oracle Home: $ORACLE_HOME"
>> echo Starting Apache
>> /usr/local/apache/bin/apachectl start
> You may find the PassEnv directive useful.
> "Specifies one or more environment variables to pass to CGI scripts
> and SSI pages from the environment of the shell which invoked the
> httpd process."
> Alternatively you could look at the envvars script which is invoked by
> apachectl in modern versions of apache, however the path you mentioned
> implies you're running 1.3 so don't have that.
> --
> noodl

Thanks. I decided to use SetEnv

SetEnv ORACLE_HOME /usr/lib/oracle/xe/app/oracle/product/10.2.0/server



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message