[英]Installing php_imagick.dll PHP extension on wampserver 2.2
I am on Windows 7 on a 32-bit OS.我在 32 位操作系统上使用 Windows 7。
I installed ImageMagick-6.8.7-Q16 from Link and I was able to run ImageMagick from command line ("convert" command).我从Link安装了 ImageMagick-6.8.7-Q16,并且能够从命令行(“转换”命令)运行 ImageMagick。
Then I downloaded the VC9 version of php_imagick.dll from http://pecl.php.net/package/imagick/3.1.2/windows .然后我从http://pecl.php.net/package/imagick/3.1.2/windows下载了 php_imagick.dll 的 VC9 版本。
I placed in the PHP extension directory.我放在PHP扩展目录下。 I tried both NTS and TS however they recommended TS.我尝试了 NTS 和 TS 但他们推荐了 TS。
Then I made changes to php.ini file but the extension wouldn't load.然后我对 php.ini 文件进行了更改,但扩展名无法加载。 In apache error log it says:在 apache 错误日志中,它说:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll' - The specified module could not be found.\r\n in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll' - The specified module could not be found.
in <b>Unknown</b> on line <b>0</b><br />
I am using wamp server 2.2 which is compiled using VC9 as well.我正在使用 wamp server 2.2,它也是使用 VC9 编译的。 I want to use Imagick functions in PHP scripts.我想在 PHP 脚本中使用 Imagick 函数。
Any help with fixing this issue is highly appreciated.非常感谢解决此问题的任何帮助。
I had this same problem, here is my configuration:我遇到了同样的问题,这是我的配置:
Windows 8.1 64Bit视窗 8.1 64 位
PHP 5.4 (Thread Safe) PHP 5.4(线程安全)
Apache 2.2阿帕奇 2.2
I tried to install the Latest Version of ImageMagick but its fail to load and I solved by installing the following version (6.7.7-5-Q16 32bit) and its worked fine with http://ftp.icm.edu.pl/packages/ImageMagick/binaries/ImageMagick-6.7.7-5-Q16-windows-dll.exe .我尝试安装最新版本的 ImageMagick,但它无法加载,我通过安装以下版本(6.7.7-5-Q16 32 位)解决了它,并且它在http://ftp.icm.edu.pl/packages 上运行良好/ImageMagick/binaries/ImageMagick-6.7.7-5-Q16-windows-dll.exe 。
after install download imagick dll from the link (imagick 3.1.2 Thread Safe )安装后从链接下载 imagick dll(imagick 3.1.2 Thread Safe)
http://pecl.php.net/package/imagick/3.1.2/windows http://pecl.php.net/package/imagick/3.1.2/windows
after restarted apache and start working重启apache并开始工作后
Ok, try the Q8 version php_imagick-3.1.2-5.3-ts-vc9-x86.zip
好的,试试Q8版本的php_imagick-3.1.2-5.3-ts-vc9-x86.zip
Yes, it has to be the TS (Thread Safe) version as Apache and PHP are compiled TS in the WAMPServer system.是的,它必须是 TS(线程安全)版本,因为 Apache 和 PHP 在 WAMPServer 系统中被编译为 TS。
Also the php_imagick.dll
is delivered as part of the Imagick download, look in the unzipped file structure for it. php_imagick.dll
也作为 Imagick 下载的一部分提供,请查看解压后的文件结构。 Copy that to the /ext
folder, not the PECL one.将其复制到/ext
文件夹,而不是 PECL 文件夹。
Running ImageMagick on XAMPP 1.8.3 with Windows 7 在 Windows 7 的 XAMPP 1.8.3 上运行 ImageMagick
Install details copied:已复制安装详细信息:
ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll ( here ) ImageMagick:ImageMagick-6.7.7-5-Q16-windows-dll( 这里)
Imagick DLL: PHP 5.5.x version from http://www.peewit.fr/imagick/ Imagick DLL:来自http://www.peewit.fr/imagick/ 的PHP 5.5.x 版本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.