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/
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
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: PHP 7.0 and oci8
Let's please use English:
Forum guidelines. Please read before first post!
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"
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
Re: PHP 7.0 and oci8
Obrigado por essa informação, mas no phpinfo() não aparece como habilitado. Coloquei a chamada ao OCI em vários lugares e nada.gperes wrote:no php -m ele só aparece os pré-compilados, este que você compilou somente aparece no phpinfo.
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.
Re: PHP 7.0 and oci8
Welton, existe a possibilidade de eu acessar seu servidor remotamente?
Welton, there is the possibility for me to access your server remotely?
Welton, there is the possibility for me to access your server remotely?
Re: PHP 7.0 and oci8
Yes, but I'm using debian inside the virtualbox. I'll have to create the route yet.gperes wrote:Welton, existe a possibilidade de eu acessar seu servidor remotamente?
Welton, there is the possibility for me to access your server remotely?
I'll give it to you later. Thank you very much for the support. Call me by email if you can.
Re: PHP 7.0 and oci8
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.
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.
Re: PHP 7.0 and oci8
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.
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.