Re: [PHP-DEV] compiling PHP with oracle

2001-01-11 Thread Paul Mindeman

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 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] compiling PHP with oracle

2001-01-11 Thread Paco Ortiz

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?

>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



> Paul
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 



Re: [PHP-DEV] compiling PHP with oracle

2001-01-11 Thread Paul Mindeman

Paco Ortiz wrote:

>  Hi:
> 
> 
>> Did anybody have any problems with compiling PHP 4.0x with oracle?
>> (--with-oci8)
> 
> 
> no problem at all with this combination:
> 
> - PIII 800MHz -256MB
> - Red Hat 6.2
> - Apache 1.3.12
> - PHP 4.0.3pl1
> - Oracle 8.1.6
> 
> Only one tip: PHP as a loadable module of Apache DOESN'T SEEM to work with oracle8 
>(--with-apxs)
> 
> You must compile PHP as an Apache module (--with-apache).
> Greetings,
> 
> Paco
> 
> 
> 
PHP as a DSO with Oracle support does work.  You need to make sure that 
$ORACLE_HOME is in Apache's path and that the libctlnsh.so.8.0 file is 
in your library path (I believe its usually found in $ORACLE_HOME/lib).

Paul


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] compiling PHP with oracle

2001-01-11 Thread Paco Ortiz

 Hi:


> Did anybody have any problems with compiling PHP 4.0x with oracle?
> (--with-oci8)

no problem at all with this combination:

- PIII 800MHz -256MB
- Red Hat 6.2
- Apache 1.3.12
- PHP 4.0.3pl1
- Oracle 8.1.6

Only one tip: PHP as a loadable module of Apache DOESN'T SEEM to work with oracle8 
(--with-apxs)

You must compile PHP as an Apache module (--with-apache).
Greetings,

Paco






Re: [PHP-DEV] compiling PHP with oracle

2001-01-11 Thread Cynic

I don't know if this is of any interest, but I successfully
built php4-200101100845 with OCI8 on NT5. I haven't tested 
it yet, but the extension shows as loaded in phpinfo().

At 14:39 11.1. 2001, Andrzej Kiesz wrote the following:
-- 

>Did anybody have any problems with compiling PHP 4.0x with oracle?
>(--with-oci8)
>
>
>
>-- 
>   
>   (` _  _  _ |_
>  (_)|||(_)(_)|\|_|
> [EMAIL PROTECTED]'
> - Andrzej Kiesz -
> http://sport.wp.pl
>
>-- 
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]