0
I am trying to connect the codeigniter with oracle and is giving this error:
Fatal error: Call to undefined function oci_connect() in C:\Apache24\htdocs\system\database\drivers\oci8\oci8_driver.php on line 238
A PHP Error was encountered
Severity: Error
Message: Call to undefined function oci_connect()
Filename: oci8/oci8_driver.php
Line Number: 238
Backtrace:
I’m using php 5.6.35 and apache 2.4. I already got the instant_client_12
and played in my php folder and nothing. I gave a print_r(get_loaded_extensions());
it shows that carried the pdo_oci
but the oci8 não.
Meu php.ini
Someone has had the same problem and could help me?
Note: php together with apache are and a virtual machine from Azure in windows server.
Possible duplicate of Fatal error: Call to Undefined Function oci_connect()
– Woss
@Andersoncarloswoss I already followed the solution but it didn’t work for me.
– William
I already had this problem and what I did was to download again the oci8 dll corresponding to the PHP version and play in the PHP installation folder. Link to download
– Piupz
@Piupz had already done it, I did it again and the error persists.
– William
@William What you can try too is to take the folder
instant_client_12
, play at the root ofdisco C
and change the windows path by pointing toC:\instant_client_12\;
, done this, only restart apache to test.– Piupz
@Piupz the instant_client_12 is already in the root folder, I do not know if it interferes more my machine does not have the PATH
– William
You need to set up the path and everything else to work, just having the lib there doesn’t work
– Otto
Detail, you always need to install the version of 32 bits, even if your operating system is 64 bit.
– C. Bohok