0

After migrating from Apache 2.4 to OHS(Oracle HTTPS server) I get Fatal error: Uncaught Error: Call to undefined function oci_connect()

I am using PHP 7 version

when I entered command php -m I can see that OCI8 is installed enter image description here

When I use Apache I am able to connect to oracle database, But when I try the same code using OHS(Oracle HTTPS server) I get this error "Fatal error: Uncaught Error: Call to undefined function oci_connect()" I can see all the DLL's are located

When I run the below command I get "TRUE" as output php -r "var_dump(function_exists('oci_connect'));"

Can you please help me

Shesha
  • 21
  • 9
  • 1
    Look at the output of a `` that will show you what the web server thinks is activated. Also check that the server is getting its `php.ini` from that same place as the PHP CLI – RiggsFolly Oct 05 '18 at 11:43
  • Thanks, when I compared the both php.ini files 1) I can find OCI8 enabled 2)For OHS php.ini file i cannot the see the OCI8 section Can you please suggest how can we enable ? – Shesha Oct 05 '18 at 12:30
  • 1
    Yes, edit the `php.ini` file and add the `extention=....` to match the one used by the CLI – RiggsFolly Oct 05 '18 at 14:11
  • but both of them are using same php.ini file (C:/PHP7) folder, Still i am not able to understand why there is a difference in php.ini file. – Shesha Oct 08 '18 at 10:39

0 Answers0