I tried all the procedures to install the PHP Oracle client.
1) I installed the Client version 8 and 32 bits.
2) I uncommented oci in php.ini
3) Restarted Wamp:
4) Not sure if really installed but I got the references in php.ini:
5) But still cannot connect:
Tyhanks for any help
EDIT
Found these errors in php log: [16-Apr-2018 14:35:03 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_oci8.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
[16-Apr-2018 14:35:03 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_oci8_11g.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
The manual tells you where you've gone wrong:
You're using incompatible libraries. The first paragraph of the OCI8 requirements documentation states (emphasis mine):
Your screenshot shows you've enabled
php_oci8
andphp_oci8_11g
. You should enable only one of the extensions, as stated in the OCI8 installation documentation (again, emphasis mine):It's installed and enabled, but not configured correctly. Your screenshots show how PHP was compiled and the various code authors, not anything about your current configuration.
To get the extension working try the following:
c:\instantclient_12_1
.PATH
environment variable to include the location where you extracted the InstantClient files, e.g.c:\instantclient_12_1
.php.ini
enable eitherphp_oci8_11g.dll
orphp_oci8_12c.dll
.You might need to reboot to ensure the
PATH
change is visible to the system.Be aware that WAMP might include multiple
php.ini
files. Make sure to edit the correct one.