无法加载动态库 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - 找不到指定的模块。在未知的第 0 行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25138611/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 17:41:08  来源:igfitidea点击:

Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found. in Unknown on line 0

phpwamp

提问by hemanth92

I installed WAMP server and whenever I try to compile a php file it doesn't display the php part. Only the html part is being displayed. The extension of the extension of the file is .php. I have tried setting the PATH for the environment variable. Nothing worked. When I checked the error log, this is what I could find.

我安装了 WAMP 服务器,每当我尝试编译 php 文件时,它都不会显示 php 部分。仅显示 html 部分。文件扩展名的扩展名是.php。我尝试为环境变量设置 PATH。没有任何效果。当我检查错误日志时,这就是我能找到的。

[05-Aug-2014 12:04:30 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library                
'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

 in Unknown on line 0

[05-Aug-2014 12:04:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library     
 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be   
 found.

 in Unknown on line 0 

Please help.

请帮忙。

回答by RiggsFolly

All you need to do is :-

您需要做的就是:-

Using the wampmanager menus do

使用 wampmanager 菜单做

wampmanager -> Apache -> Version 

and click on the version number probably it will be 2.4.9

然后点击版本号可能会是 2.4.9

This will rebuild all the SYMLINKS in the apache/bin folder and Apache/PHP will be able to find the dll's required for these 2 extensions.

这将重建 apache/bin 文件夹中的所有 SYMLINKS,Apache/PHP 将能够找到这两个扩展所需的 dll。

Also remove anything you added to the PATH env var as this will just cause problems if you ever install another version of Apache/Php, remember WAMPServer can install multi versions of both and allow you to switch between them at the click of a menu option.

还要删除您添加到 PATH env var 的任何内容,因为如果您安装另一个版本的 Apache/Php,这只会导致问题,请记住 WAMPServer 可以安装两者的多个版本,并允许您通过单击菜单选项在它们之间切换。

WAMPServer does not need anything added to the PATH to work correctly.

WAMPServer 不需要向 PATH 添加任何内容即可正常工作。

ADDITIONAL INFO:

附加信息:

Something you said

你说的话

If I click on php www directory and run the index php file (already existing).

如果我点击 php www 目录并运行 index php 文件(已经存在)。

made me think you are using Explorer, and double clicking on the php scripts from there to launch a web page. Is this what you are doing?

让我认为您正在使用资源管理器,然后从那里双击 php 脚本以启动网页。这是你在做什么?

If you are, DONT, you have to use your browser like you were accessing any other web site.

如果你是,不要,你必须像访问任何其他网站一样使用浏览器。

Always use the browser address bar to launch PHP code, otherwise it never actually goes through Apache, and therefore the PHP code never actually get passed to the PHP interpreter for compilation and execution.

始终使用浏览器地址栏来启动 PHP 代码,否则它永远不会真正通过 Apache,因此 PHP 代码永远不会真正传递给 PHP 解释器进行编译和执行。

回答by Rando Varghese

Please uninstall wamp which you had been installed.. Try to install Visual C++ ie, the link is given here http://www.microsoft.com/en-in/download/confirmation.aspx?id=30679use this link.

请卸载您已经安装的 wamp.. 尝试安装 Visual C++ 即,链接在这里http://www.microsoft.com/en-in/download/confirmation.aspx?id=30679使用此链接。

after downloading and installing Visual C++ you can install the Wamp server again.. So that it will work..correctly...

下载并安装 Visual C++ 后,您可以再次安装 Wamp 服务器.. 这样它就能正常工作..正确......

回答by raksa eng

Copy all dll files from C:\wamp\bin\php\php5.5.12 to C:\wamp\bin\apache\apache2.4.9\bin

将所有dll文件从C:\wamp\bin\php\php5.5.12复制到C:\wamp\bin\apache\apache2.4.9\bin

回答by JIJO JOSEPH

I had this same and I enabled the rewrite_module in appache and it worked.

我也有同样的情况,我在 appache 中启用了 rewrite_module 并且它起作用了。

回答by KVG

append the following to the path of system variables

将以下内容附加到系统变量的路径中

C:\wamp\bin\php\php5.5.12\ext;C:\wamp\bin\php\php5.5.12;.;