Re: Oracle8i x PHP4 x Linux
| From: | Rasmus Lerdorf | Date: | Fri, 04 Aug 2000 12:48:54 +0000 |
| Subject: | Re: Oracle8i x PHP4 x Linux | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1789@lists.php.net to get a copy of this message | ||
> Some hints for using Apache/PHP4/Oracle8i on Linux:
>
> - Don't use a precompiled Apache - they are not able to load libphp4.so
> due to a glibc bug. Instead compile apache yourself, adding
> LDFLAGS=-lpthreads to your environment before configuring apache. See
> several mails by Thies regarding this issue.
> - Either add the directory that contains libclntsh.so.8.0 (usually
> $ORACLE_HOME/lib) to /etc/ld.so.conf file and run ldconfig
> OR modify apachectl (or whatever startscript you use) that it adds the
> above dir to the environment variable LD_LIBRARY_PATH.
> - Add ORACLE_HOME to the environment, either by setting it in the
> environment of the user starting apache or by also exporting it in the
> apache startscript. Otherwise you won't be able to connect to Oracle.
> Especially using PutEnv in httpd.conf does _not_ work.
Just to add to this, the Oracle 8.0.5 client libs are not linked against
pthreads and they connect fine to an 8.1.[56] server.
eg.
/u01/app/oracle/product/8.1.5/lib> ldd libclntsh.so
libdl.so.2 => /lib/libdl.so.2 (0x2afb6000)
libm.so.6 => /lib/libm.so.6 (0x2afba000)
libpthread.so.0 => /lib/libpthread.so.0 (0x2afd6000)
libc.so.6 => /lib/libc.so.6 (0x2afe7000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)
/u01/app/oracle/product/8.0.5/lib> ldd libclntsh.so
/lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x2ae2b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x2ae31000)
libm.so.6 => /lib/libm.so.6 (0x2ae47000)
libdl.so.2 => /lib/libdl.so.2 (0x2ae63000)
libc.so.6 => /lib/libc.so.6 (0x2ae66000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)
-Rasmus