无法在Wamp上安装php_imagick.dll [英] Unable to install php_imagick.dll on wamp

查看:61
本文介绍了无法在Wamp上安装php_imagick.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在线尝试了各种教程以及关于SO答案的步骤,但没有任何效果.

I tried various tutorials online as well steps given on SO answers but nothing worked.

我正在使用wamp 2.4 ver和php 5.4.12使用Windows 64位和m我尝试了Imagemagik和php_imagick.dll的各种组合,但没有用

I am using windows 64 bit and m using wamp 2.4 ver and php 5.4.12 I have tried various combinations of Imagemagik and php_imagick.dll but nothing worked

请帮助,这对于运行它非常重要

Please help, its very important for to run it

我遇到以下错误

推荐答案

我知道我们可以直接从任务栏中显示的wamp图标打开php.ini,但就我而言,它没有打开.所以我从C:\ wamp \ bin \ php \ php5.4.12手动打开它但是后来我意识到我们必须在三个文件中进行更改才能使其正常工作.那是:

I know we can open php.ini directly from wamp icon shown in tray but in my case it was not opening. So i was manually opening it from C:\wamp\bin\php\php5.4.12 But then i realized that we have to make changes in three files to make it work. That are:

  1. C:\ wamp \ bin \ php \ php5.4.12 \ php.ini
  2. C:\ wamp \ bin \ php \ php5.4.12 \ phpForApache.ini
  3. C:\ wamp \ bin \ apache \ apache2.4.9 \ bin \ php.ini

然后我按照fsasvari在下面的链接中给出的步骤

Then I followed the steps given by fsasvari in following link

  1. 这里(其他版本对我不起作用)
  2. 安装在C:\ imagemagick中,在最后一步中检查将应用程序目录添加到系统路径"
  3. http://www.peewit.fr/imagick下载Imagick DLL:PHP5.5.x版本/(我在本地主机上安装了5.5+版本
  4. 将php_imagick.dll复制到C:\ wamp \ bin \ php \ ext
  5. http://下载PHP 5.5线程安全(TS)x86版本pecl.php.net/package/imagick/3.1.2/windows
  6. 将CORE_RL_ *文件复制到C:\ wamp \ bin \ apache \ bin \
  7. 在C:\ wamp \ bin \ apache \ bin \ php.ini中编辑php.ini文件,在扩展部分添加extension = php_imagick.dll行
  8. 将所有文件从C:\ imagemagick \ modules \ coders和C:\ imagemagick \ modules \ filters复制到C:\ imagemagick以加载ImageMagick支持的格式
  9. 转到控制面板->系统->高级设置->环境变量->新系统变量-> MAGICK_HOME = C:\ imagemagick
  10. 重新启动Wamp服务器并检查phpinfo()中的imagick插件
  11. 如果最后一步不起作用,请重新启动Windows
  1. Download ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll from here (other versions did not work for me)
  2. Install in C:\imagemagick, on last step check "Add application directory to your system path"
  3. Download Imagick DLL: PHP5.5.x version from http://www.peewit.fr/imagick/ (I have 5.5+ version installed on my localhost
  4. Copy php_imagick.dll to C:\wamp\bin\php\ext
  5. Download PHP 5.5 Thread Safe (TS) x86 version from http://pecl.php.net/package/imagick/3.1.2/windows
  6. Copy CORE_RL_* files to C:\wamp\bin\apache\bin\
  7. Edit php.ini file in C:\wamp\bin\apache\bin\php.ini, add extension=php_imagick.dll line in extensions section
  8. Copy all files from C:\imagemagick\modules\coders and C:\imagemagick\modules\filters to C:\imagemagick to load ImageMagick supported formats
  9. Go to Control Panel -> System -> Advanced Settings -> Environment Variables -> New System Variable -> MAGICK_HOME = C:\imagemagick
  10. Restart Wamp server and check phpinfo() for imagick plugin
  11. If last step does not work, restart Windows

由fsasvari回答

这篇关于无法在Wamp上安装php_imagick.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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