简体   繁体   English

哪里可以找到适用于Windows wampserver 2.5的php 5.5.12的php_imagick.dll?

[英]Where to find php_imagick.dll for php 5.5.12 for Windows wampserver 2.5?

I am using Wampserver 2.5 on my Windows 7 (32 bit) and my PHP version is 5.5.12 . 在Windows 7(32位)上使用Wampserver 2.5,我的PHP版本是5.5.12 I am unable to use IMAGICK . 我无法使用IMAGICK

I have installed IMAGICK version 6.8.9 on my system and it works like charm on the command line. 我在我的系统上安装了IMAGICK版本6.8.9 ,它在命令行上就像魅力一样。

Further, I have followed instructions to enable it on my wampserver. 此外,我已按照说明在我的wampserver上启用它。

  1. Inserted " SetEnv MAGICK_HOME C:/imagemagick " in httpd.conf at Appache. 在Appache的httpd.conf中插入“ SetEnv MAGICK_HOME C:/ imagemagick ”。
  2. Downloaded php_imagick-3.1.2-5.5-ts-vc11-x86.zip 下载了php_imagick-3.1.2-5.5-ts-vc11-x86.zip
  3. Copied and pasted the php_imagick.dll from zip to php.ini at Appache. php_imagick.dll从zip复制并粘贴到Appache的php.ini。

While running a simple script on php [$a = new Imagick()] I get the error [Class 'Imagick' not found] . 在php [$ a = new Imagick()]上运行一个简单的脚本时, 我收到错误[未找到Class'Imagick']

Kindly direct me to the right way of installation and the right downloads to install IMAGICK on Wampserver 2.5 / Windows 7 / 32bit / PHP 5.5.12 . 请指导我正确的安装方式和正确的下载, 以便在Wampserver 2.5 / Windows 7 / 32bit / PHP 5.5.12上安装IMAGICK

Manual installation of imagick on Wamp, Xampp, and IIS 在Wamp,Xampp和IIS上手动安装imagick

  1. Create a folder imagick in php/ext folder. 在php / ext文件夹中创建一个文件夹imagick。
  2. Now add this newly created php/ext/imagick folder to windows path. 现在将这个新创建的php / ext / imagick文件夹添加到windows路径。
  3. Download the latest version of imagick for windows from this link. 从此链接下载最新版本的imagick for windows。 http://windows.php.net/downloads/pecl/releases/imagick/ http://windows.php.net/downloads/pecl/releases/imagick/
  4. Download php extension of imagick from this link. 从此链接下载imagick的php扩展。 http://windows.php.net/downloads/pecl/deps/ http://windows.php.net/downloads/pecl/deps/
  5. Before downloading these 2 zip files, match the file name of your installation with your php. 在下载这两个zip文件之前,请将您的安装文件名与您的php相匹配。 for eg. 例如。 php_imagick-3.2.0b2-5.5-nts-vc11-x86.zip php_imagick-3.2.0b2-5.5-nts-vc11-x86.zip
    -Here 5.5 is the version of php - 这是5.5的版本
    -nts is for IIS and windows (wamp) and ts is for Apache and Linux (xampp) -nts用于IIS和Windows(wamp),ts用于Apache和Linux(xampp)
    -VC11 and VC9 are the version of compilation, run phpinfo and check that it match with your php version. -VC11和VC9是编译版本,运行phpinfo并检查它是否与您的php版本匹配。
    -x86 is for 32 bit x64 is for 64 bit machines, i recommend use x86 only -x86用于32位x64用于64位机器,我建议仅使用x86
  6. Once you have downloaded the correct version for your php, extract the downloaded file to imagick folder you have added to path, take all files from bin folder to the root of imagick and replace all 下载了正确的php版本后,将下载的文件解压缩到已添加到路径的imagick文件夹中,将bin文件夹中的所有文件提取到imagick的根目录并替换所有文件
  7. Add full path to php_imagick.dll in php.ini like extension=C:\\wamp\\php\\ext\\imagick\\php_imagick.dll 在php.ini中添加php_imagick.dll的完整路径,如extension = C:\\ wamp \\ php \\ ext \\ imagick \\ php_imagick.dll
  8. Restart your computer for path to take effect. 重新启动计算机以使路径生效。 Then open command and type dcraw and press enter. 然后打开命令并输入dcraw并按Enter键。 if you have added the path correctly a list of parameters will be shown, your Imagick is installed sucessfully. 如果您已正确添加路径,将显示参数列表,您的Imagick已成功安装。
  9. Run phpinfo again and you will see Imagick listed as extension. 再次运行phpinfo,您将看到Imagick列为扩展名。

I would add a small, but crucial advice, becaues it took me 10 hours of sunday, to get it working. 我会添加一个小而重要的建议,因为它花了我10个小时的星期天,让它工作。

This is for Win7/10 x64 and Wamp 2.5 x64 这适用于Win7 / 10 x64和Wamp 2.5 x64

There is a php.ini file in apache/bin folder and there should be added a new line with php_imagick.dll extension :) 在apache / bin文件夹中有一个php.ini文件,应该添加一个带有php_imagick.dll扩展名的新行:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 wampserver 2.2 上安装 php_imagick.dll PHP 扩展 - Installing php_imagick.dll PHP extension on wampserver 2.2 PHP 5.5.12 php_imagick.dll 不工作。 %1 不是有效的 W32 应用程序 - PHP 5.5.12 php_imagick.dll is not working. %1 is not a valid W32 applicaiton 无法在Wamp上安装php_imagick.dll - Unable to install php_imagick.dll on wamp 无法在WampServer 2.5上使用PHP5.5.12上传音频文件 - Can't upload audio file with PHP5.5.12 on WampServer 2.5 无法加载动态库'C:\\ xampp \\ php \\ ext \\ php_imagick.dll'-找不到指定的模块 - Unable to load dynamic library 'C:\xampp\php\ext\php_imagick.dll' - The specified module could not be found 如何在WampServer中将PHP 5.5.12升级到5.6.12 - How to Upgrade PHP 5.5.12 to 5.6.12 in WampServer WampServer和Imagemagick,无法识别imagick php模块 - WampServer and Imagemagick, imagick php module not recogized 如何修复:无法加载动态库 'C:\Program Files\php\ext\php_imagick.dll' - 在第 0 行的未知中找不到指定的模块? - How to fix: Unable to load dynamic library 'C:\Program Files\php\ext\php_imagick.dll' - The specified module could not be found in Unknown on line 0? 升级到PHP 5.5.12(WAMP 2.5)后,未定义索引“ admin” - Undefined Index “admin” After Upgrading to PHP 5.5.12 (WAMP 2.5) WampServer 2.5 php-win.exe任务 - WampServer 2.5 php-win.exe task
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM