无法在Wamp上安装php_imagick.dll [英] Unable to install php_imagick.dll on wamp
问题描述
我在线尝试了各种教程以及关于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:
- C:\ wamp \ bin \ php \ php5.4.12 \ php.ini
- C:\ wamp \ bin \ php \ php5.4.12 \ phpForApache.ini
- C:\ wamp \ bin \ apache \ apache2.4.9 \ bin \ php.ini
然后我按照fsasvari在下面的链接中给出的步骤
Then I followed the steps given by fsasvari in following link
- 从这里(其他版本对我不起作用)
- 安装在C:\ imagemagick中,在最后一步中检查将应用程序目录添加到系统路径"
- 从 http://www.peewit.fr/imagick下载Imagick DLL:PHP5.5.x版本/(我在本地主机上安装了5.5+版本
- 将php_imagick.dll复制到C:\ wamp \ bin \ php \ ext
- 从 http://下载PHP 5.5线程安全(TS)x86版本pecl.php.net/package/imagick/3.1.2/windows
- 将CORE_RL_ *文件复制到C:\ wamp \ bin \ apache \ bin \
- 在C:\ wamp \ bin \ apache \ bin \ php.ini中编辑php.ini文件,在扩展部分添加extension = php_imagick.dll行
- 将所有文件从C:\ imagemagick \ modules \ coders和C:\ imagemagick \ modules \ filters复制到C:\ imagemagick以加载ImageMagick支持的格式
- 转到控制面板->系统->高级设置->环境变量->新系统变量-> MAGICK_HOME = C:\ imagemagick
- 重新启动Wamp服务器并检查phpinfo()中的imagick插件
- 如果最后一步不起作用,请重新启动Windows
- Download ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll from here (other versions did not work for me)
- Install in C:\imagemagick, on last step check "Add application directory to your system path"
- Download Imagick DLL: PHP5.5.x version from http://www.peewit.fr/imagick/ (I have 5.5+ version installed on my localhost
- Copy php_imagick.dll to C:\wamp\bin\php\ext
- Download PHP 5.5 Thread Safe (TS) x86 version from http://pecl.php.net/package/imagick/3.1.2/windows
- Copy CORE_RL_* files to C:\wamp\bin\apache\bin\
- Edit php.ini file in C:\wamp\bin\apache\bin\php.ini, add extension=php_imagick.dll line in extensions section
- Copy all files from C:\imagemagick\modules\coders and C:\imagemagick\modules\filters to C:\imagemagick to load ImageMagick supported formats
- Go to Control Panel -> System -> Advanced Settings -> Environment Variables -> New System Variable -> MAGICK_HOME = C:\imagemagick
- Restart Wamp server and check phpinfo() for imagick plugin
- If last step does not work, restart Windows
这篇关于无法在Wamp上安装php_imagick.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!