Installing iMagick on WAMP Server?
Posted by: darthpathos76 (---.dsl.bell.ca)
Date: July 19, 2024 07:10PM

Hi all,

I'm running PHP 8.2.20, Apache 2.4.59.1, WAMP Manager 3.3.5. I'm trying to get the imagick extension installed but am stuck. I've downloaded the ZIP from php.net and have put the DLL in the EXT folder for PHP, but it's not showing up in the list of Extensions in WAMP Manager. PHP.INI and phpForApache.ini both have

[Imagick]
extension=php_imagick.dll

When I select "Show the list of loaded extensions", I get the following:
Warning: PHP Startup: Unable to load dynamic library 'php_imagick.dll' (tried: c:/wamp64/bin/php/php8.2.13/ext/php_imagick.dll (The specified module could not be found), c:/wamp64/bin/php/php8.2.13/ext/php_php_imagick.dll.dll (The specified module could not be found)) in Unknown on line 0

Which doesn't make sense because everything else is showing 8.2.20. I have also put the DLL and the updated extension info into the 8.2.13 folder just to see if that worked (it doesn't).

How can I get the extension set up and running?

Options: ReplyQuote
Re: Installing iMagick on WAMP Server?
Posted by: Otomatic (Moderator)
Date: July 19, 2024 08:21PM

Hi,

> [Imagick]
> extension=php_imagick.dll

You haven't paid attention to how extensions are declared in php.ini or phpForApache.ini, but how dll files are named in the ext folder!

Extension names in php.ini
extension=curl
;extension=dba
extension=com_dotnet
;extension=dl_test
;extension=enchant
;extension=ffi
extension=fileinfo
;extension=ftp
extension=gd
extension=gettext
etc.

Files in ext :
php_bz2.dll
php_com_dotnet.dll
php_curl.dll
php_dba.dll
php_dl_test.dll
php_enchant.dll
php_exif.dll
php_ffi.dll
php_fileinfo.dll
etc.

So, if the imagick extension file must be named "php_imagick.dll", the load in php.ini must be :
extension=imagick

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.