Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

migrating from Apache to OHS facing problem with OCI8 "Uncaught Error: Call to undefined function oc

3807919Oct 8 2018 — edited Oct 11 2018

I have a website running up-end with Apache, PHP, Oracle Database.

I am trying to migrate to OHS by removing Apache, After installing OHS I was able to run the simple PHP file when I try to connect to Oracle Data Base I get this

error "Uncaught Error: Call to undefined function oci_connect()".

The strange thing, it work with Apache and not with OHS not sure what I am missing.

extension=php_oci8_12c.dll enable in php.ini file, I tired adding the folder "instantclient_11_2" in SYSTEM32 folder and added in System Environment variable still I get the same error.

Tried installing instantclient-basic too.

I am not able to figure out what went wrong.

Comments

Processing

Post Details

Added on Oct 8 2018
2 comments
1,187 views