无法加载动态库“ php_wincache.dll”? [英] Unable to load dynamic library 'php_wincache.dll'?

查看:165
本文介绍了无法加载动态库“ php_wincache.dll”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为我已经使用过ASP.NET,所以我决定在IIS上使用PHP,所以我使用Wep PI安装了它,但是当我尝试安装Composer时,他失败并出现PHP设置错误。

Because I already use ASP.NET I decided to use PHP on IIS, I install it using Wep PI but when I trying to install Composer he fails with PHP settings error.

I试图在php.ini中将extension_dir更改为绝对且未注释的php_wincache扩展,但是我的解决方案均无效

I tried to change the extension_dir to absolute and uncommented php_wincache extension in php.ini but none of my solutions works


C:\Program Files(x86)\ iis express\PHP\v7.2\php.exe

C:\Program Files (x86)\iis express\PHP\v7.2\php.exe

命令行PHP使用的php.ini是:C:\Program Files(x86)\ iis express\PHP\v7.2\php.ini

The php.ini used by your command-line PHP is: C:\Program Files (x86)\iis express\PHP\v7.2\php.ini

您的php.ini中的设置可能会导致问题:'extension_dir'值不正确或dll

A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.

程序输出:
PHP警告:PHP启动:无法加载动态库'php_wincache.dll'(尝试:C:\Program Files(x86) PHP速成版v7.2扩展php_wincache.dll(%1个最基本的应用程序Win32有效性),C:Program Files(x86)PHP速成版\v7.2\ext\php_php_wincache.dll.dll(可以解释的模块)。 n在第0行上未知

Program Output: PHP Warning: PHP Startup: Unable to load dynamic library 'php_wincache.dll' (tried: C:\Program Files (x86)\iis express\PHP\v7.2\ext\php_wincache.dll (%1 n’est pas une application Win32 valide.), C:\Program Files (x86)\iis express\PHP\v7.2\ext\php_php_wincache.dll.dll (Le module spécifié est introuvable.)) in Unknown on line 0


推荐答案

回答这个问题有点晚了。但是我也面临同样的问题,并且能够以某种方式解决它。请按照以下步骤解决此问题。

It's a little late to answer this question. But I also face the same issue and somehow able to resolve it. Please follow below steps to resolve this.

步骤1:为PHP安装Windows缓存扩展。

Step 1: Install Windows Cache Extension for PHP.

    You can install it from http://php.net/manual/en/wincache.installation.php
    Or you can use Web Platform Installer. (Please see the screenshot.)

第2步:安装后转到 Windows Cache for PHP文件夹。复制php_wincache.dll。

Step 2: After installation goes to folder "Windows Cache for PHP". Copy php_wincache.dll.

步骤3:将复制的文件粘贴到您的PHP / ext位置。例如 C:/ Program Files / PHP / v7.0 / ext。

Step 3: Paste copied file into your PHP/ext location. e.g. "C:/Program Files/PHP/v7.0/ext".

现在您可以尝试再次安装作曲器。

Now you can try to install composer again.

我希望这会为您提供帮助。

I hope this will help you.

这篇关于无法加载动态库“ php_wincache.dll”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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