Re: [PHP] apache/oracle/php
Thanks to all who tried to helps. I've finally found out why. The oracle home user directory should be set to drwxr-xr-x so once the required environment was set the ora function can connect to the oracle database, and all the required files and library can be access. thanks Regards, Mike > > 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. > > Could it be because nobody/nobody has no rights? > At least I think nobody should have no rights for your db... > > Cheers, > > Kiko > > -- > It's not a bug, it's a feature. > christoph starkmann > mailto:[EMAIL PROTECTED] > http://www.gruppe-69.com/ > ICQ: 100601600 > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache/oracle/php
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
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
RE: [PHP] Apache + Oracle + PHP on HPUX
Hi, You can use OpenLink ODBC drivers, and compile PHP/apache --with-iodbc as per the HOWTO at www.iodbc.org. The HOWTO is Linux-based, but the major different will be environment variables. During the install of OpenLink MT drivers a shell script will be automatically created (openlink.sh, openlink.csh) that will set the appropriate variables for you before you try to compile php and apache. Also, this saves you from installing the Oracle client. Just place the iODBC archive in the same directory as the OpenLink MT drivers, and run the install.sh that comes with the OpenLink drivers. This should get your environment fairly well setup. If you require assistance, free support is available at http://www.openlinksw.com/support/suppindx.htm Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 26, 2001 5:04 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Apache + Oracle + PHP on HPUX > > > Hi! > > I've got an HP-UX 10.20 and I would like to install > Apache + Oracle + PHP. > > Does anyone know a place to get an installation guide? > > Or must I install in the same way as Linux? > > Regards, > > - > This mail was sent through Eoffice: http://www.eoffice.dk > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Apache + Oracle + PHP on HPUX
>I've got an HP-UX 10.20 and I would like to install >Apache + Oracle + PHP. You have my deepest sympathies. :) I installed and maintained PHP3 & PHP4 + Oracle + OpenSSL + Apache on a system like that for 2 years before we were finally able to retire it and move to a Solaris environment. The hardest part is getting things successfully compiled and linked against the various extra libraries (Oracle, GD, etc.) with the correct flags. I'll look around to see if I still have the various makefiles & config files that I used, but I suspect they're away on a backup tape somewhere. Searching the archives of this list and groups.google.com will be your best source of help. - Tim http://www.phptemplates.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]