php中的dll“找不到指定的模块” [英] dll in php "the specified module could not be found"

查看:118
本文介绍了php中的dll“找不到指定的模块”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用PHP扩展时遇到麻烦。我正在尝试运行脚本,没有任何反应,然后检查了错误日志,这就是我得到的内容:

I am having trouble with PHP extensions. I am trying to run a script and nothing happens then I checked my error log and here is what I got:

PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8.dll' - The specified module could not be found. in Unknown on line 0

以下文件相同:

 php_oci8_11g.dll
 php_pdo_oci.dll
 php_sybase_ct.dll
 php_com_dotnet.dll

除php_com_dotnet.dll以外的所有文件均通过PHP安装进行安装,所有文件均在php.ini配置中启用。在线研究之后,我看到有人说必须将其复制到system32或sysWOW64文件夹,但我没有成功。然后,我尝试在cmd中使用regsvr32注册它们,并且每个文件都出现错误:

every file except php_com_dotnet.dll was installed with PHP installation, all the files are enabled in php.ini configuration. After researching online I saw some people said that it has to be copied to system32 or sysWOW64 folder, which I did without success. Then I tried to register them using regsvr32 in cmd and I am getting error for every single file:

"The module name_of_the_module.dll failed to load"

我不知道我在做什么错。

I don't understand what am I doing wrong.

服务器配置为Windows 2008 R2 64位,IIS7,PHP 5.3.27

Server configuration is Windows 2008 R2 64bit, IIS7, PHP 5.3.27

推荐答案

在Windows上,我通过将'extension_dir'(在php.ini中)指定的路径添加到PATH系统环境变量的值来解决了这类问题。

On Windows, I solved these kind of problems by adding the path specified in 'extension_dir' (in php.ini) to the value of PATH system environment variable.

这篇关于php中的dll“找不到指定的模块”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆