PHP, IIS, Oracle (OCI) not working

烂漫一生 提交于 2019-12-01 14:29:30

Depending on the version of InstantClient you have installed you might need to include the bin folder in the path, like so:

C:\instantclient\bin

To check if the DLL files are available in the path enter where oci*.dll in a command prompt. It should return a list of matching files.

Also, remember that just because your account can see the DLL files doesn't mean IIS/PHP can. That runs under a different account that might not have permission to access the files. Check your IIS error log and PHP php_errors.log file for any specific error messages.


Edit

After a rather lengthy chat, the problem was resolved by:

  • Updating the InstantClient from 10.1.0.5 to 10.2.0.5 (as mentioned in the module requirements: On Windows, the php_oci8 DLL needs Oracle client libraries from version 10gR2 or greater.)
  • Adding a copy of msvcr71.dll to the InstantClient folder.
  • Downloading and manually configuring PHP from php.net instead of using PHP Manager for IIS.
  • Ensuring the Path environment variable correctly pointed to the InstantClient and PHP folders.

try this:

extension=php_oci8_12c.dll (instead of php_oci8.dll) - that is what I am using and you probably downloaded the same instant client as I did.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!