apache+php+oracle

apache+php+oracle

Post by Roman D. Sinyu » Mon, 07 Sep 1998 04:00:00



Hi All!

I have hpux-10.20 box with Oracle-7.3.2.
Does anybody uses php for access to oracle database from web server?
All my attempts was failed, php (cgi version and apache module) was core
dumped. May be my environment is't correctly setup?
How can I spec. database host, port, oracle sid, user, and passwd in
php-3.0. The standard php function ora_logini () provide user and passwd only.
If anybody have worked examples, send me it please.

Any help would be greatly appreciated.

 
 
 

1. Apache-PHP-Oracle linking problem

I'm trying to set up Apache with PHP which has been set up with Oracle
support.  The PHP part seems to go fine (I installed it into the Apache
source tree) and most of the Apache compilation seems to go well, except
when it's linking everything together.  Here's the error I get:

<=== src/modules/proxy
===> src/modules/php3
gcc -c  -I../../os/unix -I../../include   -DSOLARIS2=260 -DUSE_HSREGEX
-DUSE_EXPAT -I../../lib/expat-lite `../../apaci`  mod_php3.c
cp libmodphp3.a libphp3.a
ar r libphp3.a mod_php3.o
ranlib libphp3.a
<=== src/modules/php3
<=== src/modules
gcc -c  -I./os/unix -I./include   -DSOLARIS2=260 -DUSE_HSREGEX
-DUSE_EXPAT -I./lib/expat-lite `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DSOLARIS2=260 -DUSE_HSREGEX
-DUSE_EXPAT -I./lib/expat-lite `./apaci` buildmark.c
gcc  -DSOLARIS2=260 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
`./apaci`    \
-o httpd buildmark.o modules.o modules/php3/libphp3.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a
ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a  -R/oracle/lib
-L/oracle/lib -Lmodules/php3 -L../modules/php3 -L../../modules/php3
-lmodphp3   -lclntsh -lsocket -lnsl -lm -ldl -laio
-lpam -lm -ldl -lsocket -lnsl  -lresolv  -lsocket -lnsl -lgdbm -ldl
Undefined                       first referenced
symbol                             in file
olog                                modules/php3/libphp3.a(oracle.o)
ld: fatal: Symbol referencing errors. No output written to httpd
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/opt/src/apache_1.3.9/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/opt/src/apache_1.3.9'
make: *** [build] Error 2

The PHP FAQ suggests re-ordering the libraries in the Makefile (I assume
they are just talking about the Makefile in apache/src and not the other
makefiles in subdirs).  I have tried various combinations including the
one suggested in the installation instructions, which is:
-L$ORACLE_HOME/lib -lclntsh -lpsa -lcore4 -lnlsrtl3 -lclntsh -lm
This doesn't work either, particularly because I don't have the psa or
core4 libraries (or they just aren't in my path).

Any suggestions are appreciated in advance.
- jonathan

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

2. logging

3. Solaris - PHP- Apache- Oracle : Problem getting PHP installed

4. sending ipaddress

5. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK

6. exporting symbols from shared library

7. PHP/Oracle and PHP Training

8. APACHE 1.2b4: NEWBIE Problem with POST

9. Apache+PHP+ODBC+ORACLE

10. Install Apache with PHP and Oracle

11. Problems with Apache/Oracle/PHP

12. Need to compile Apache/PHP with Oracle

13. Compiling Apache 1.3.x with PHP and Oracle 7.3.4 on HPUX11