Re: [PHP-DEV] compiling PHP with oracle From: Paul Mindeman (mindeman <email protected>)
Date: 01/11/01

Paco Ortiz wrote:

> Hi:
>
>
>> PHP as a DSO with Oracle support does work.
>
>
> yes, that's how I believe it has to be...
>
>> You need to make sure that
>> $ORACLE_HOME is in Apache's path
>
>
> do you mean that when I compile and configure apache, $ORACLE_HOME is properly set?

No, when you build apache, $ORACLE_HOME doesn't need to be set. It does
need to be set when you build PHP, and when you start Apache.

>
>> and that the libctlnsh.so.8.0 file is
>> in your library path (I believe its usually found in $ORACLE_HOME/lib).
>
>
> I think I met those conditions. That's why I got surprised when it didn't work. Apache died whenever I executed "apachectl start".
>
> I didn't want to find out at that moment what was happening. Only reconfigured and recompiled PHP as apache module and worked fine.
>
> Maybe I did something wrong on the way, who knows.
>
> Thanks for letting me know.
>
> Paco
>
>
On Linux, you'd need to add $ORACLE_HOME/lib (the actual path) to your
/etc/ld.so.conf file, and make sure $ORACLE_HOME is set before you start
Apache..

For example, my /etc/ld.so.conf file looks something like this:

/usr/X11R6/lib
/usr/lib
/usr/local/oracle/product/8.1.6/lib

Apache should then start up fine.

Paul

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>