如何在Windows PHP 7.0上安装Imagick扩展名

问题描述 投票:4回答:3

我需要在我的Apache-PHP 7.0服务器上安装Imagic扩展。我遵循了位于此处的非常好的指南:https://herbmiller.me/2016/06/16/installing-imagick-php-7/。基于“ php -i”出来:

PHP Version => 7.0.13
Compiler => MSVC14 (Visual C++ 2015)
Architecture => x86
Thread Safety => enabled
extension_dir => D:\Program Files (x86)\PHP7\ext => D:\Program Files (x86)\PHP7\ext

我下载了文件

php_imagick-3.4.3rc4-7.0-ts-vc14-x86.zip

来自http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc4/。我将所有DLL文件复制到D:\ Program Files(x86)\ PHP7 \ ext,并添加了

extension=php_imagick.dll

到我的PHP.INI。当我重新启动Apache时,未加载Imagic扩展,事件查看器显示2个相同的错误:

The description for Event ID 4 from source PHP-7.0.13 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

php[11628]
PHP Warning: PHP Startup: Unable to load dynamic library 'D:\Program Files (x86)\PHP7\ext\php_imagick.dll' - The specified module could not be found.
 ("d:\Program Files (x86)\Apache24\bin\httpd.exe" -k runservice)

[请,有人可以告诉我,我做错了吗?

php windows imagick
3个回答
2
投票

这是唯一对我们有用的教程:

https://tektriks.com/a-step-by-step-guide-on-how-to-install-imagemagick-in-windows/

我在Windows 7下将PHP版本7.1.9与WampServer64一起使用。


0
投票

按照给定教程中的步骤进行:

https://herbmiller.me/2016/06/16/installing-imagick-php-7/

我下载的文件是ImageMagick-6.9.3-7-vc14-x64.zip

http://windows.php.net/downloads/pecl/deps

将ImageMagick安装到您选择的目录中

从ImageMagick zip文件中提取整个bin目录到您选择的目录。我选择了C:\ ImageMagick-6.9.3-7

然后设置系统环境变量并重新启动。


© www.soinside.com 2019 - 2024. All rights reserved.