Error connecting Codeigniter with Oracle

Asked

Viewed 238 times

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

https://imgur.com/a/1fVtwAX

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.

  • @Andersoncarloswoss I already followed the solution but it didn’t work for me.

  • 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 had already done it, I did it again and the error persists.

  • @William What you can try too is to take the folder instant_client_12, play at the root of disco C and change the windows path by pointing to C:\instant_client_12\;, done this, only restart apache to test.

  • @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

  • You need to set up the path and everything else to work, just having the lib there doesn’t work

  • Detail, you always need to install the version of 32 bits, even if your operating system is 64 bit.

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.