Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 2000 17:45:12 -0500
From:      "Steven Fusco" <steve@nhandtech.com>
To:        <remco@scc.nl>, <freebsd-emulation@FreeBSD.ORG>
Subject:   FreeBSD + Oracle + PHP
Message-ID:  <KFECJLAFCJJEFHHFHFCMAECMCGAA.steve@nhandtech.com>

next in thread | raw e-mail | index | archive | help
This is regarding your usenet post:

Remco Moolenaar wrote:
>
> > I can only wonder that maybe it doesn't want to go with
> > 4.0 fbsd.  Does anyone know if it needs to be 3.? fbsd.
> > Or doesn't the fbsd version matter??????????

Try following the handbook line by line. I do not want to be picky, but this
is absolutely necessary.
Questions:
- Is Linux installed?
- You need Linux_base and development version 5.2 installed into an empty
/compat/linux
- Did you create an oracle acount using /compat/linux/bin/bash as its shell?
- Did you run the root.sh after the Oracle installation (it is in
$ORACLE_HOME/orainst)
- Is shared memory installed?
- Did you recreated a new kernel and rebooted?

I know, some stupid questions, but anyway.

Another remark: you can use the Linux libs to create your own Oracle
development environment. I did this for several OCI programs. I will
probably work for PHP as well!!

------ end of message ------

This last comment is akin to the problem I'm having.  I've got Oracle (from
what I can tell) working with listeners ready and a test database going that
I've inserted values in using sqlplus.  However, now I'm trying to get PHP4
to see it.  I've edited the ports makefile in mod_php4 and
added -with-oracle=/home/oracle, along with these symlinks:

# ll /usr/local/lib | g compat
lrwxr-xr-x  1 root  wheel      35 Jul 21 13:49 ld-linux.so.2@ ->
/usr/compat/linux/lib/ld-linux.so.2
lrwxr-xr-x  1 root  wheel      31 Jul 21 13:48 libc.so.6@ ->
/usr/compat/linux/lib/libc.so.6
lrwxr-xr-x  1 root  wheel      31 Jul 21 13:47 libcrypt.so.1@ ->
/compat/linux/lib/libcrypt.so.1
lrwxr-xr-x  1 root  wheel      32 Jul 21 13:48 libdl.so.2@ ->
/usr/compat/linux/lib/libdl.so.2
lrwxr-xr-x  1 root  wheel      27 Jul 21 13:46 libm.so.6@ ->
/compat/linux/lib/libm.so.6
lrwxr-xr-x  1 root  wheel      30 Jul 21 12:26 libnsl.a@ ->
/compat/linux/usr/lib/libnsl.a
lrwxr-xr-x  1 root  wheel      31 Jul 21 12:26 libnsl.so@ ->
/compat/linux/usr/lib/libnsl.so
lrwxr-xr-x  1 root  wheel      31 Jul 21 13:46 libnsl.so.1@ ->
/compat/linux/usr/lib/libnsl.so

GCC compiles successfully now, but after the port modifies apache.conf with
the new mod_php4 entries it's attempting to sighup the server.  This is what
I get:

# apachectl configtest
Syntax error on line 239 of /usr/local/etc/apache/apache.conf:
Cannot load /usr/local/libexec/apache/libphp4.so into server:
/home/oracle/lib/libclntsh.so.1.0: Undefined symbol "slpmprodstab"

ARG! If you've any idea that could point me in the right direction, I'm
afraid it is incredibly urgent I get this working.

____________
Steven Fusco - nHand Technologies
PGP:		http://nhandtech.com/pgp/sfusco.asc
main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?KFECJLAFCJJEFHHFHFCMAECMCGAA.steve>