[PHP] Call to undefined function ora_logon()
I am unable to get php 5.0.4 working with Oracle 10.1.0.3. (also Apache 2.0.54). Running on SuSE 9.3. When I look at the output of phpinfo() it shows OCI8 support enabled as well as mysql support. (Mysql support works fine) bongrip:/usr/local/apache2/modules # ldd libphp5.so linux-gate.so.1 => (0xe000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x402c6000) libclntsh.so.10.1 => /u01/app/oracle/product/10.1.0.3/lib/libclntsh.so.10.1 (0x4048d000) Here you can see it is correctly linked with the oracle client. However, Ora_Logon and OCILogOn but fail with this error: Call to undefined function ora_logon()/OCILogon() $ORACLE_HOME/lib is defined in LD_LIBRARY_PATH of the environment that is running the apache server, I also explictly set ORACLE_HOME in the same environment as well as using SetEnv in the httpd.conf file. (although I'm not getting to a point where ORACLE_HOME is an issue yet) I saw a document that said to build with --with-oci8 AND --with-oracle, however --with-oracle doesn't work with 10g. (it complains about not finding the correct libraries) Any ideas? Does php 5.0.4 work with Oracle 10.1.0.3? Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Support for Oracle 10g in php 5.0.4
I'm having problems getting php 5.0.4 working with Oracle 10.1.0.3 and just wanted to check and make sure 10g was supported before wasting any more cycles on it. Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SOlaris 10 Build Problems
Trying to build php 5.0.4 on solaris using gcc, and get this error: checking for Apache 2.0 filter-module support via DSO through APXS... no checking for Apache 2.0 handler-module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed) The output of /usr/local/apache2/bin/apxs follows: ./configure: /usr/local/apache2/bin/apxs: not found configure: error: Aborting ccarson-sun:/usr/local/src/php-5.0.4 #/usr/local/apache2/bin/httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c ccarson-sun:/usr/local/src/php-5.0.4 #which perl /usr/bin/perl ccarson-sun:/usr/local/src/php-5.0.4 #ls -l /usr/local/apache2/bin/apxs -rwxr-xr-x 1 root bin22795 Jun 19 00:17 /usr/local/apache2/bin/apxs According to the error, the problem could be one of 3 things, however, none of those apply to my case. Anyone have any ideas? Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can PHP Talk directly to Oracle w/o Using Listener
Does PHP have the ability to talk directly to a local oracle database w/o the need for a listener? Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Solaris 9/Oracle 10g Compile Time Problems
How do you build php 5.0.4 with support for oracle 10.2 on Solaris 9? I am getting the following compile time error? z -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lnsl -lsocket -lgen -ldl -lclntsh -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -o libphp5.la ld: fatal: file /u01/app/oracle/product/10.2/lib/libclntsh.so: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to .libs/libphp5.so *** Error code 1 make: Fatal error: Command failed for target `libphp5.la' Thanks, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ARG, call to undefined function, same problem I had on SuSE
Okay, just built php 5.0.4 on solaris 9 and added mysql and oracle support (using Oracle 10.2.0.1). phpinfo() shows that oracle support is enabled, however, a simple call to ora_logon doesnt work: Fatal error: Call to undefined function ora_logon() in /usr/local/apache2/htdocs/oratest.php on line 2 I configured php as follows: ./configure --prefix=/usr/local/php-5.0.4 --with-apxs2=/usr/local/apache2/bin/apxs --enable-cli --enable-cgi --with-openss=/usr/local/ssl --with-zlib --with-bz2 --enable-dio --with-gd --with-gettext --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --enable-sockets --with-oci8=/u01/app/oracle/product/10.2 Anyone have any ideas??? Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP is occasionally seg faulting
Im running php 5.0.4 with oracle 10g on Solaris 9 and apache 2.0.54. (I built with --with-oci8 so I am using the OCI stuff) I have a simple test page that does "select username from dba_users" and merely prints each username to the browser. It will work 1 time or sometimes 2 but then subsequent calls produce errors (in the browser) and the apache log gets this: [Tue Jul 19 16:01:10 2005] [notice] child pid 7105 exit signal Segmentation fault (11) [Tue Jul 19 16:02:18 2005] [notice] child pid 7107 exit signal Segmentation fault (11) [Tue Jul 19 16:02:19 2005] [notice] child pid 7110 exit signal Segmentation fault (11) Anyone have any ideas? Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Before I pull anymore hair out.. Is anyone Using..
Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle 10g support and using apache 2.0.54? I have looked at every 10 times over. I have built php with oracle support probably 100 times on 5 different platforms and never had as many issues as I have had so far with this system. After finally getting php to build with everything I needed, I am getting seg faults when accessing a php page that connects to the oracle database. (but it doesn't happen _every_ time, it is inconsistent) I'm at a loss and must move to tomcat/jsp/servlets if I can't get a stable platform up this week. =( Thx CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Build Issues on Soalris 9
Okay, something I just noticed. (PHP builds fine, including make test) I see this after running configure: Generating files updating cache ./config.cache creating ./config.status creating php5.spec creating main/build-defs.h creating scripts/phpize creating scripts/php-config creating sapi/cli/php.1 creating main/php_config.h creating main/internal_functions.c creating main/internal_functions_cli.c ++ | *** ATTENTION ***| || | Something is likely to be messed up here, because the configure| | script was not able to detect a simple feature on your platform. | | This is often caused by incorrect configuration parameters. Please | | see the file debug.log for error messages. | I am configuring with this: adcinfops01:/usr/local/src/php-5.0.4 #./configure --prefix=/usr/local/php-5.0.4 --with-apxs2=/usr/local/apache2/bin/apxs --enable-cli --enable-cgi --with-openssl=/usr/local/ssl --with-zlib --with-zlib-dir=/usr/local/lib --with-bz2 --enable-dio --with-gd --with-gettext --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --enable-sockets --with-oci8=/u01/app/oracle/product/10.2 --enable-sigchild LDFLAGS="-L/usr/local/mysql/lib/mysql -L/u01/app/oracle/product/10.2/lib32 -L/usr/local/ssl/lib -L/usr/local/lib" How can I determine what it thinks is missing? Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Before I pull anymore hair out.. Is anyone Using..
Yea, there is nothing talking about my eact configuration. (mainly on Solaris) I can get this config working on SLES 9 and Red Hat w/o problems and currently have it running on a dozen systems or so. I need it on Solaris 9... -CC On 7/20/05, Mikey <[EMAIL PROTECTED]> wrote: > Chuck Carson wrote: > > >Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle > >10g support and using apache 2.0.54? I have looked at every 10 times > >over. I have built php with oracle support probably 100 times on 5 > >different platforms and never had as many issues as I have had so far > >with this system. > > > >After finally getting php to build with everything I needed, I am > >getting seg faults when accessing a php page that connects to the > >oracle database. (but it doesn't happen _every_ time, it is > >inconsistent) > > > >I'm at a loss and must move to tomcat/jsp/servlets if I can't get a > >stable platform up this week. =( > > > >Thx > >CC > > > > > > > I guess you have tried reading the walkthrough on Oracle? > > http://www.oracle.com/technology/tech/php/index.html > > HTH, > > Mikey > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php