donglanfu5831 2018-10-11 05:43
浏览 597
已采纳

程序无法启动,因为您的计算机缺少php7.dll

I am trying to deploy OCI8 with PHP7 and Apache 2.4. The database does not reside in my local pc. It is on a different server with Oracle 11g Enterprise version and 64bit architecture as well.

I am unable to load oci8 on my local PC with the following settings

extension=php_oci8_11g.dll
extension_dir = c:\php\ext

The path in system variables is properly updated with c:\php;

I have followed the instructions carefully https://www.oracle.com/technetwork/articles/dsl/technote-php-instant-084410.html

I am using all versions with 64bit as my PC is running 64bit:

  1. mod_fcgid
  2. instantclient
  3. php7
  4. apache 2.4

phpinfo() shows perfectly on my browser but it does not show a table for oci8. I then run the command php -m in cmd to double check the status, but I get the following popup:

The program cannot start because php7.dll is missing from your computer.
Try reinstalling the program to fix the problem.

And the cmd window shows the following error:

Warning: PHP Startup: Unable to load dynamic library 'php_oci8_11g'
(tried: C:\php\ext\php_oci8_11g (The specified module could not be
found.), C:\php\ext\php_php_oci8_11g.dll (The specified module could 
not be found.)) in Unknown on line 0

What could be the problem?

  • 写回答

1条回答 默认 最新

  • dtp0760 2018-10-13 03:54
    关注

    I had it working with extension=oci8_12c instead. It turned out that even if the remote Oracle Database I am trying to connect with is of version 11g, the latest oci8 version supports 11g as well. This worked: https://www.oracle.com/technetwork/articles/dsl/technote-php-instant-12c-2088811.html

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题