Re: [PHP] Accesing Oracle
On Mon, May 21, 2001 at 03:21:30PM +0100, Kike wrote : > Hi all, > I've just installed Orcale 8.1.7 in a linux server in my lan. I'm trying to access >to > the server from another computer with apache and i get the next: > Fatal error: Call to undefined function: ora_logon() in > /usr/local/apache/htdocs. > Where can i find docs to configure boths machines to access to the > oracle server? > Thanks a lot. Additionally to the other posts, make sure PHP _AND_ APACHE is at least linked against libpthread.so: LDFLAGS=-lpthread ./configure This is for both php and apache - Markus -- 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] Accesing Oracle
At 03:21 PM 5/21/01 +0100, Kike wrote: >Hi all, >I've just installed Orcale 8.1.7 in a linux server in my lan. I'm trying >to access to >the server from another computer with apache and i get the next: >Fatal error: Call to undefined function: ora_logon() in >/usr/local/apache/htdocs. >Where can i find docs to configure boths machines to access to the >oracle server? First, if you're trying to access an Oracle 8i database, you'll want OCILogon() not ora_logon() -- ora_* functions are for Oracle 7.x databases, OCI* functions are for Oracle 8.x databases... The first thing you need to do is install the Oracle Net8 Client on your apache webserver machine and configure it so that you can connect to the Oracle 8.1.7 server. Be sure to set ORACLE_SID, NLS_LANG, and ORACLE_HOME in your default environment (or, specifically in the environment for your apache user) so that the Net8 client software can connect to the database when executed as the 'nobody' user... Next, compile PHP again, including the OCI8 functions, and restart apache. - Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 <[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] Accesing Oracle
Sounds like you need to recompile PHP with Oracle support. Recompile PHP with the -with-oracle flag when running the configure script to include the Oracle functions. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Kike [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 10:22 AM To: [EMAIL PROTECTED] Subject:[PHP] Accesing Oracle Hi all, I've just installed Orcale 8.1.7 in a linux server in my lan. I'm trying to access to the server from another computer with apache and i get the next: Fatal error: Call to undefined function: ora_logon() in /usr/local/apache/htdocs. Where can i find docs to configure boths machines to access to the oracle server? Thanks a lot. -- 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]