Re: php + oracle + apache on Compaq systems
| From: | Sabine Hoefler-Thierfeldt | Date: | Tue, 09 Oct 2001 14:44:26 +0000 |
| Subject: | Re: php + oracle + apache on Compaq systems | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13142@lists.php.net to get a copy of this message | ||
Hello,
there is obviously only one way to get these things working.
1. Compile apache with DSO and extra LDFLAGS
CC=cc LDFLAGS="-L/usr/shlib -lrt -laio_raw" ./configure
--prefix=/usr/local/apache --enable-shared=max
(instead of extra LDFLAGS you can set the environment variable
export _RLD_LIST="DEFAULT:/usr/shlib/librt.so:/usr/shlib/libaio_raw.so"
before starting the apache server)
2. Compile php with shared oci8-library:
CC=cc ./configure --with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/lib/php
--with-oci8=shared,/usr/local/Oracle/Programmer/8.1.7 --enable-sigchild
The oci8-library "liboci8.so" then is situated in the directory "modules"
in the php source.
3. Use php.ini and set the extension_dir to where the "liboci8.so"
is or copy "liboci8.so" to your favoured module directory.
DON'T use the command "extension=liboci8.so" in the php.ini!
Use the command "dl('liboci8.so');" in your php script instead.
Hope this will help some TRU64 administrators with the same problems.
Sabine
Sabine Hoefler-Thierfeldt wrote:
>
> Hello,
>
> has anybody already succeeded in installing Apache-1.3.20 with
> php-4.0.6 and Oracle-8.1.7 on Compaq systems with
> OSF V. 5.1?
>
> First I tried to use DSO for php (--with-apxs, --with-oci8).
> the compilation went through, but the apache server cannot be
> started and breaks with segmentation fault und core dump.
> This problem has been described by Compaq, but it is said to
> be working with the new version OSF V 5.1 .
> (LD_LIBRARY_PATH was set correctly.)
>
> Then I tried to compile php statically into apache (--with-apache --with-oci8)
> However, same fault and core dump.
>
> At last I tried to compile php statically with the old
> version --with-oracle. And now I succeeded in starting the
> apache server. The problem is, my users want to use
> the OCI-calls and don't want to go back to ORA-calls.
>
> Any ideas, how I can --with-oci8 with Compaq systems?
>
> I use the Compaq CC Compiler, the Oracle client is mounted
> via NFS.
>
> Sabine