PHP 7.0 and oci8

If none of the more specific forums is the right place to ask

Re: PHP 7.0 and oci8

Postby gperes » 2017-12-01 17:08

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.
gperes
 
Posts: 14
Joined: 2017-05-22 13:51

Re: PHP 7.0 and oci8

Postby GarryRicketson » 2017-12-01 17:21

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.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4464
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: PHP 7.0 and oci8

Postby weltonwms » 2017-12-01 17:28

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.
weltonwms
 
Posts: 8
Joined: 2017-11-30 21:32

Re: PHP 7.0 and oci8

Postby gperes » 2017-12-01 17:42

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

Postby gperes » 2017-12-01 17:48

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

Welton, there is the possibility for me to access your server remotely?
gperes
 
Posts: 14
Joined: 2017-05-22 13:51

Re: PHP 7.0 and oci8

Postby weltonwms » 2017-12-01 18:02

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

Postby weltonwms » 2017-12-02 13:00

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.
weltonwms
 
Posts: 8
Joined: 2017-11-30 21:32

Re: PHP 7.0 and oci8

Postby gperes » 2017-12-05 11:10

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

Re: PHP 7.0 and oci8

Postby weltonwms » 2017-12-05 14:14

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.
weltonwms
 
Posts: 8
Joined: 2017-11-30 21:32

Previous

Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable