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" <[EMAIL PROTECTED]> To: "Michael P. Carel" <[EMAIL PROTECTED]> Cc: "php" <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php