httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James White" <jbwhi...@ncsu.edu>
Subject Re: [users@httpd] setting ORACLE_HOME
Date Mon, 02 Jul 2007 19:50:44 GMT
> On 02/07/07, James White <jbwhite2@ncsu.edu> 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


Jim


>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message