Re: apache/oracle/php

From: Date: Wed, 12 Jun 2002 14:06:47 +0000
Subject: Re: apache/oracle/php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101738@lists.php.net to get a copy of this message
Yes Miguel, i've set all the required environment to the .bash_profile for the user oracle. What im wondering are , i've also installed oracle/php/apache in AIX server and my php scripts with ora function just work. But for the RedHat Linux i should run apache as oracle/dba. I've also set all the required enviroment in my php scripts. Heres the sample: PutEnv("ORACLE_SID=oracle"); PutEnv("ORACLE_BASE=/home/oracle"); PutEnv("ORACLE_HOME=/home/oracle/OraHome1"); PutEnv("LD_LIBRARY_PATH=$ORACLE_HOME/lib"); $connection=Ora_Logon("system","manager"); This will only works if apache runs oracle/dba. Mike ----- Original Message ----- From: "Miguel Cruz" <mnc@stoic.net> To: "Michael P. Carel" <mikecarel@teamglac.com> Cc: "php" <php-general@lists.php.net> Sent: Wednesday, June 12, 2002 2:12 PM Subject: Re: [PHP] apache/oracle/php > On Tue, 11 Jun 2002, Michael P. Carel wrote: > > Is there anyone who could give me some reasons why does my php script with > > oracle function does'nt work if i run apache as nobody/nobody? > > > > My script only work if i run apache as oracle/dba. > > Maybe your environment variables (ORA_BASE, etc.) are getting set in user > oracle's .login file. > > miguel

« previous php.general (#101738) next »