Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Imagick extension on Windows PHP 7.0

I need to install Imagic extension on my Apache - PHP 7.0 server. I followed very nice guide located here: https://herbmiller.me/2016/06/16/installing-imagick-php-7/. Based on "php -i" out:

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

I downloaded file

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

from http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc4/. I coppied all DLL files to D:\Program Files (x86)\PHP7\ext and I added

extension=php_imagick.dll

to my PHP.INI. When I restarted my Apache, Imagic extension was not loaded and Event viewer showed 2 same errors:

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)

Please, could anybody tell me, what I am doing wrong?

like image 616
user3523426 Avatar asked Nov 19 '22 19:11

user3523426


1 Answers

This is the only tutorial that worked our for me:

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

I am using PHP version 7.1.9 with WampServer64 under Windows 7.

like image 79
Fco Avatar answered Jan 17 '23 17:01

Fco