PHP + OCI en Debian

PHP + OCI en Debian

am 22.03.2006 22:17:35 von SJL

Is my first message in the list. So really I don=B4t know what language
use... In the end of this message I attach an Spanish version (Spanish
is my first language, so sorry for my possible mistakes).
--

Someone install any time the Oracle Client to use the OCI interface to
connect a Oracle DB?

I'm working in Debian. I installed the Client of Oracle from a package
from the official page... but I don=B4t know how to configure php.ini to
make the OCI API works..

Also, I have not "oci8.so". I read in php.net that I need this file...

So.. I have some components of OCI, but I just install de Oracle Client Bas=
ic..

Do I must install something else to make it works?

Please... I need to make this connection as soon as possible... And I
stagnant...

I have
PHP 4
Apache 2
Last Oracle Client Basic from the official page
Debian Distribution..


Thanks a lot,

Sebasti=E1n Lavena

------------------------------------------------------------ ---------------=
-----------------------------------------------
Espa=F1ol:

Alguien alguna vez instalo el cliente de oracle para usar la interfaz
OCI para conectarse conta una Base de Datos Oracle, desde PHP?

La cosa es que estoy intentando hacerlo, y estoy teniendo infinitos
problemas... sumado a que es la primera vez que estoy trabajando con
Php, Oracle y la distro Debian.


Instale el Oracle Client para linux .

Lei que tengo que configurar el php.ini... estuve invetigando, y hay
que hacer una referencia a un tal "oci8.so", el cual NO lo tengo.

En fin.. estoy atascado con esto, y si alguien alguna vez hizo la
instalaci=F3n.. me gustar=EDa saber que pasos siguio...

Tengo PHP 4
Apache 2
Instale la =FAltima versi=F3n del Oracle Client que esta en la net...


Gracias de antemano,

Sebasti=E1n

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP + OCI en Debian

am 23.03.2006 01:36:28 von Chris

SJL wrote:
> Someone install any time the Oracle Client to use the OCI interface to
> connect a Oracle DB?
>
> I'm working in Debian. I installed the Client of Oracle from a package
> from the official page... but I don´t know how to configure php.ini to
> make the OCI API works..

Now that you've installed Oracle Instant Client you need to get php to
recognise it's there (so it can create the oci8.so file).

I'm not sure if there is a package to do this or if you'll have to
compile php from source with the extra option:

--with-oci8

I suspect you'll have to compile php from source, you won't be able to
use a package to do this, but I could be wrong.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP + OCI en Debian

am 23.03.2006 14:20:20 von SJL

It=B4s true. I find the sources of oci8.so.

But in my first try to compile it, It failed because the it have calls
to php.h and info.h, so I try to move the sources files to the path
where I have this files (taking care with the relative path in the
source code), but it fail again with more than 100 compile errors...

Somebody in this list have the "oci8.so" file ? (if it was compiled
with Debian Distro in a 32 bits system is better, if not I would try
it).

Do someone try to compile this source in the paste?

Thanks a lot,

Sebasti=E1n

On 3/22/06, Chris wrote:
> SJL wrote:
> > Someone install any time the Oracle Client to use the OCI interface to
> > connect a Oracle DB?
> >
> > I'm working in Debian. I installed the Client of Oracle from a package
> > from the official page... but I don=B4t know how to configure php.ini t=
o
> > make the OCI API works..
>
> Now that you've installed Oracle Instant Client you need to get php to
> recognise it's there (so it can create the oci8.so file).
>
> I'm not sure if there is a package to do this or if you'll have to
> compile php from source with the extra option:
>
> --with-oci8
>
> I suspect you'll have to compile php from source, you won't be able to
> use a package to do this, but I could be wrong.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP + OCI en Debian

am 23.03.2006 14:31:40 von Chris Smith

On 3/24/06, SJL wrote:
> It=B4s true. I find the sources of oci8.so.
>
> But in my first try to compile it, It failed because the it have calls
> to php.h and info.h, so I try to move the sources files to the path
> where I have this files (taking care with the relative path in the
> source code), but it fail again with more than 100 compile errors...
>
> Somebody in this list have the "oci8.so" file ? (if it was compiled
> with Debian Distro in a 32 bits system is better, if not I would try
> it).

Make sure you have the php-dev or php-devel package installed. Those
files should be in that one.

Us compiling that file for you is no good, it might be for a different
file, different architecture and various other differences (ie it
probably won't work).

> On 3/22/06, Chris wrote:
> > SJL wrote:
> > > Someone install any time the Oracle Client to use the OCI interface t=
o
> > > connect a Oracle DB?
> > >
> > > I'm working in Debian. I installed the Client of Oracle from a packag=
e
> > > from the official page... but I don=B4t know how to configure php.ini=
to
> > > make the OCI API works..
> >
> > Now that you've installed Oracle Instant Client you need to get php to
> > recognise it's there (so it can create the oci8.so file).
> >
> > I'm not sure if there is a package to do this or if you'll have to
> > compile php from source with the extra option:
> >
> > --with-oci8
> >
> > I suspect you'll have to compile php from source, you won't be able to
> > use a package to do this, but I could be wrong.
> >
> > --
> > Postgresql & php tutorials
> > http://www.designmagick.com/
> >
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP + OCI en Debian

am 23.03.2006 15:35:35 von SJL

Ok, I think that you say to me that=B4s is not possible to compile
oci8.c separate...

When you say "compile with extra option --with-oci8", you mean something li=
ke:

make --with-oci8 makefile?

Sorry for the ignorance...

Thanks again,

Sebastian

On 3/22/06, Chris wrote:
> SJL wrote:
> > Someone install any time the Oracle Client to use the OCI interface to
> > connect a Oracle DB?
> >
> > I'm working in Debian. I installed the Client of Oracle from a package
> > from the official page... but I don=B4t know how to configure php.ini t=
o
> > make the OCI API works..
>
> Now that you've installed Oracle Instant Client you need to get php to
> recognise it's there (so it can create the oci8.so file).
>
> I'm not sure if there is a package to do this or if you'll have to
> compile php from source with the extra option:
>
> --with-oci8
>
> I suspect you'll have to compile php from source, you won't be able to
> use a package to do this, but I could be wrong.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP + OCI en Debian

am 23.03.2006 20:14:14 von SJL

I was surfing in the web, and I found this:

http://www.akadia.com/services/ora_php_linux.html

Describe how to recompile php with oci8 librarys, in apache2 under
Linux or Solaris.

May be it will be usefull for someone else.

Thanks anyway,

Sebastian

On 3/23/06, SJL wrote:
> Ok, I think that you say to me that=B4s is not possible to compile
> oci8.c separate...
>
> When you say "compile with extra option --with-oci8", you mean something =
like:
>
> make --with-oci8 makefile?
>
> Sorry for the ignorance...
>
> Thanks again,
>
> Sebastian
>
> On 3/22/06, Chris wrote:
> > SJL wrote:
> > > Someone install any time the Oracle Client to use the OCI interface t=
o
> > > connect a Oracle DB?
> > >
> > > I'm working in Debian. I installed the Client of Oracle from a packag=
e
> > > from the official page... but I don=B4t know how to configure php.ini=
to
> > > make the OCI API works..
> >
> > Now that you've installed Oracle Instant Client you need to get php to
> > recognise it's there (so it can create the oci8.so file).
> >
> > I'm not sure if there is a package to do this or if you'll have to
> > compile php from source with the extra option:
> >
> > --with-oci8
> >
> > I suspect you'll have to compile php from source, you won't be able to
> > use a package to do this, but I could be wrong.
> >
> > --
> > Postgresql & php tutorials
> > http://www.designmagick.com/
> >
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP + OCI en Debian

am 28.04.2006 01:24:06 von Christopher Jones

The original article on installing PHP with Oracle Instant Client
is at http://www.oracle.com/technology/pub/notes/technote_php_inst ant.html

Make sure you get the re-factored (i.e. much better) oci8 extension from
http://cvs.php.net/php-src/ext/oci8/
or
http://pecl.php.net/package/oci8

Chris

(Sorry for late reply - I'm catching up from being out of the office
for three weeks)

SJL wrote:
> I was surfing in the web, and I found this:
>
> http://www.akadia.com/services/ora_php_linux.html
>
> Describe how to recompile php with oci8 librarys, in apache2 under
> Linux or Solaris.
>
> May be it will be usefull for someone else.
>
> Thanks anyway,
>
> Sebastian
>
> On 3/23/06, SJL wrote:
>> Ok, I think that you say to me that´s is not possible to compile
>> oci8.c separate...
>>
>> When you say "compile with extra option --with-oci8", you mean something like:
>>
>> make --with-oci8 makefile?
>>
>> Sorry for the ignorance...
>>
>> Thanks again,
>>
>> Sebastian
>>
>> On 3/22/06, Chris wrote:
>>> SJL wrote:
>>>> Someone install any time the Oracle Client to use the OCI interface to
>>>> connect a Oracle DB?
>>>>
>>>> I'm working in Debian. I installed the Client of Oracle from a package
>>>> from the official page... but I don´t know how to configure php.ini to
>>>> make the OCI API works..
>>> Now that you've installed Oracle Instant Client you need to get php to
>>> recognise it's there (so it can create the oci8.so file).
>>>
>>> I'm not sure if there is a package to do this or if you'll have to
>>> compile php from source with the extra option:
>>>
>>> --with-oci8
>>>
>>> I suspect you'll have to compile php from source, you won't be able to
>>> use a package to do this, but I could be wrong.
>>>
>>> --
>>> Postgresql & php tutorials
>>> http://www.designmagick.com/
>>>
>


--
Christopher Jones, Oracle Corporation, Australia.
Email: Christopher.Jones@oracle.com
Blog: http://blogs.oracle.com/opal/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php