1
I’m using xampp in windows 7, PHP version is 7.0.15. I installed the Oracle Instant Client (32bits tbm) and then extracted in the "ext" php folder version 2.1.3 of OCI8 according to this site (https://pecl.php.net/package/oci8/2.1.3/windows). The problem is that after doing the whole process, phpinfo() does not display the OCI8 section, so it is not actually connected/installed. Thanks in advance!
As in php.ini: Extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client
Message when I put the command "php -m":
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - NÒo foi possÝvel encontrar o m¾dulo especificado.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - NÒo foi possÝvel encontrar o m¾dulo especificado.
in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
After extracting the DLL in the ext folder, you enabled this in your php.ini ? After changing php.ini, you restarted apache?
– jlHertel
I did all that. With version 5.6.30 of PHP on when I started apache (after enabling the dll in php.ini) I was displaying a message as if I couldn’t read the dll. Oh and also when I try to install OCI8 on the terminal by pecl it displays an "error: the dsp oci8.dsp does not exist.
– RamonVicente
Are you using php version 5.6? Because this link you passed above is unique to php 7.
– jlHertel
No no, I’m using PHP 7. Now that I saw it I must have deleted the part that mentioned that I had also tried with version 5.6.30. But I’m currently with version 7.
– RamonVicente
could post the part of your php.ini that is enabling the extension?
– jlHertel
It looks like this and I decoded ";": Extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client
– RamonVicente
Could edit your question and put the formatted code?
– jlHertel
In this case, the image of php.ini?
– RamonVicente
No. Please edit your question and add the part of php.ini that contains the OCI8 extension configuration
– jlHertel
Ready, edited
– RamonVicente
Could you tell me the module is displayed as follows: Open a CMD, type
php -m
?– jlHertel
I edited the post, take a look at what appeared. There is no oci8
– RamonVicente
And to make it worse, it keeps displaying the message that says php7.dll is missing.
– RamonVicente
By its error message, it is not finding the file in the folder. It could check if the DLL is in the folder and with the correct name?
– jlHertel
It’s in the same folder and with the right name
– RamonVicente
Could provide a screenshot containing the folder name and the DLL?
– jlHertel
Ready I edited. So?
– RamonVicente
Could you tell me if your php version is 32 or 64 bits? And the extension, is 32 or 64 bits?
– jlHertel
Sorry for the delay, I spent the weekend without internet. Both PHP and extension are 32bits
– RamonVicente
Could try installing the listed extension here ?
– jlHertel
Woow, connected with php/. Now I just need to see if I can communicate with the bank. Man, thank you very much! I’ve already moved on!
– RamonVicente
put an answer with the solution found. If this solved your problem, please mark it as the correct answer.
– jlHertel