Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

PHP 7.0 and oci8

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
gperes
Posts: 14
Joined: 2017-05-22 13:51

Re: PHP 7.0 and oci8

#16 Post by gperes »

Verifica por favor se este caminho da compilação é o mesmo no seu servidor: /usr/lib/php/20151012/

Please verify this path of the compilation in your server: /usr/lib/php/20151012/
Last edited by gperes on 2017-12-01 17:43, edited 1 time in total.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: PHP 7.0 and oci8

#17 Post by GarryRicketson »

Let's please use English:
Forum guidelines. Please read before first post!
9. The language on this board is primarily English but we do not exclude people with little or no English. When replying to posts in other languages please include an English translation. It's a good idea to help non-English speakers find resources in their language.

weltonwms
Posts: 8
Joined: 2017-11-30 21:32

Re: PHP 7.0 and oci8

#18 Post by weltonwms »

gperes wrote:no php -m ele só aparece os pré-compilados, este que você compilou somente aparece no phpinfo.
Obrigado por essa informação, mas no phpinfo() não aparece como habilitado. Coloquei a chamada ao OCI em vários lugares e nada.

Thanks for this info, but in phpinfo () it does not appear as enabled. I put the call to the OCI in several places and nothing.
Last edited by weltonwms on 2017-12-01 18:03, edited 1 time in total.

gperes
Posts: 14
Joined: 2017-05-22 13:51

Re: PHP 7.0 and oci8

#19 Post by gperes »

Garry, sorry! i will use english also on the replies.

gperes
Posts: 14
Joined: 2017-05-22 13:51

Re: PHP 7.0 and oci8

#20 Post by gperes »

Welton, existe a possibilidade de eu acessar seu servidor remotamente?

Welton, there is the possibility for me to access your server remotely?

weltonwms
Posts: 8
Joined: 2017-11-30 21:32

Re: PHP 7.0 and oci8

#21 Post by weltonwms »

gperes wrote:Welton, existe a possibilidade de eu acessar seu servidor remotamente?

Welton, there is the possibility for me to access your server remotely?
Yes, but I'm using debian inside the virtualbox. I'll have to create the route yet.
I'll give it to you later. Thank you very much for the support. Call me by email if you can.

weltonwms
Posts: 8
Joined: 2017-11-30 21:32

Re: PHP 7.0 and oci8

#22 Post by weltonwms »

I discovered something. The problem is in Apache. I took a test. I put the OCI8 call in /etc/php/7.0/cli/php.ini. This file is read when I call the embedded web server of php, independent of apache. When I ran the PHP Embedded Web Server, I checked in phpinfo () that OCI8 was enabled as I wanted it to.

Other important information: Placing the OCI8 call in /etc/php/7.0/cli/php.ini , if ​​I give the command: php -m, the OCI8 appears as well.

Apache somehow is not communicating properly with PHP.

gperes
Posts: 14
Joined: 2017-05-22 13:51

Re: PHP 7.0 and oci8

#23 Post by gperes »

Excellent!

weltonwms
Posts: 8
Joined: 2017-11-30 21:32

Re: PHP 7.0 and oci8

#24 Post by weltonwms »

I found the solution.
As I had said the problem was the Apache. What was missing was to configure the apache environment variables.
Example:
Set the following variables in apache2:

# vi / etc / apache2 / envvars

Add these two lines at the end of the file.

export LD_LIBRARY_PATH = / usr / lib / oracle / 12.2 / client64 / lib
export ORACLE_HOME = / usr / lib / oracle / 12.2 / client64

Thank you all for the support. I hope this helps others too.

Post Reply