0

After going through our most recent deployment, pdo_oci stopped loading up with the rest of the php PDO extensions...
None of the apache (except for hostname) and php configurations were changed in this deployment.

This was the error I was seeing in console:

could not find driver 

I have QA and Production environments with the same configurations:

extension=php_mysqli.dll extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client extension=php_pdo_mysql.dll extension=php_pdo_oci.dll extension=php_pdo_odbc.dll extension=php_pdo_sqlsrv_54_ts.dll 

+

phpinfo1


QA:
PDO shows mysql, oci, odbc, sqlsrv; as expected

QA PDO

Prod:
PDO shows mysql, odbc, sqlsrv; missing oci

Production PDO


At this point, I am not really sure what else to do. Everything in the configs looks fine and I have tried restarting the services and whatnot.
Have checked all the php.ini dir and extension dir paths.

Has anyone encountered this issue before?
I would like suggestions...


PHP 5.4 x86 Windows Server Apache 2.2 I have used each of the db access drivers before on these servers successfully.

1
  • i would check to make sure the oracle drivers are installed correctly on prod and that you have the right environment variables, the cannot load driver error suggests a failure to find the oracle client Commented Sep 17, 2016 at 6:18

1 Answer 1

0

For some reason,

the environmental variable for path was missing my oci instantclient dir. It existed in QA, so it should have been there already for Production.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.