Installing ImageMagick Onto Xampp/Windows 7 - php

ImageMagick is working when I test it from cmd but when using it for Xampp and restarting it then the error message I receive is:httpd.exe-Entry Point Not Found. The procedure entry point MagickGetImageGravity could not be located in the dynamic link library CORE_RL_wand_.dll.
The second message is PHP StartUp: Unable to load dynamic library C:\xampp\php\ext\php_imagick.dll- The specified procedure could not be Found.
I'm pretty sure second error message is caused by first error up top. Probably wrong dll. I'm on Windows 7 64 BIT running PHP 5.3.5 and Apache 2.2.17. Thanks

My refrence is this page
ImageMagick 6.8.0 binaries compiled with VC9 (Visual Studio 2008). I noticed that the official ImageMagick builds are now Visual Studio 2010 and that wouldn’t work well with PHP compiled with 2008. see phpInfo() and search for compiler and php version.
The download link for the binaries is here: imagick-php54-php53.tgz
I download this folder and copy php54 -> php_imagick_ts.dll to xampp\php\ext
My PhP Version is : PHP Version 5.4.4
then rename it to php_imagick.dll.
At the end restart your appache server.

I had this same problem and banged my head against all kinds of possible solutions before finally finding a combination of Imagick builds and dll's that would play nicely with my setup. Here's what finally worked for me:
OS: Windows 7 64 Bit
PHP: 5.5.6
XAMPP: 1.8.3
Compiler: MSVC11
Architecture: x86
ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll (available here)
Imagick DLL: PHP5.5.x version from http://www.peewit.fr/imagick/
Once I finally had this set up, Apache finally started without any errors. Hopefully it works for you, too!

I think there some problem loading imagemagick php module while you install latest version of windows binary ,i rectify the problem by download 6.7.7-5-Q16 32bit version and its worked on that version.once install this version download imagemagick PHP module and restart apache.

Related

How to install php_imagick on wamp64

I've been trying to install php_imagick on wamp64 without any luck.
The desired goal is for WordPress to stop showing the error message:
The optional module, Imagick, is not installed or has been disabled.
You can also skip reading and view the images attached below.
My setup:
Wamp64 Windows 10 Release Version 3.2.3.3 64 Bits [Windows Build: 19041]
PHP Version: 7.4.9
Build Date: Aug 4 2020 11:45:36
Windows: NT *username* 10.0 build 19041 (Windows 10) AMD64
Compiler Visual: C++ 2017
Architecture: x64
Loaded Configuration File: C:\wamp64\bin\apache\apache2.4.46\bin\php.ini
Thread Safety: enabled
I tried installing the following ImageMagick files:
1) ImageMagick-7.0.10-30-Q16-HDRI-x64-dll.exe
----A) php_imagick-3.4.3rc1-5.6-ts-vc11-x64.zip
----B) php_imagick-3.4.3rc1-7.1-ts-vc14-x64.zip
2) ImageMagick-7.0.10-30-Q16-x64-dll.exe
----A) php_imagick-3.4.3rc1-7.1-ts-vc14-x64.zip
----B) php_imagick-3.4.4rc2-7.3-ts-vc15-x64.zip
3) ImageMagick-6.9.3-7-Q16-x64-dll.exe (Current)
----A) php_imagick-3.4.4rc2-7.3-ts-vc15-x64.zip (Current)
----B) php_imagick-3.4.3rc1-7.1-ts-vc14-x64.zip
----C) php_imagick-3.4.3rc1-5.6-ts-vc11-x64.zip
What I did:
I first installed the EXE file and then extracted from the zip file just the php_imagick.dll file into this folder:
C:\wamp64\bin\php\php7.4.9\ext
Which matches my currently used PHP version (see images later for more information[php.ini]).
I tried restarting Wamp, rebuilding symlinks by switching PHP/Apache versions.
Will also be worth mentioning that I at one point tried extracting the full zip into the 'ext' folder under a folder named 'php_imagick' as shown below and did manage to get this error:
C:\wamp64\bin\php\php7.4.9\ext\php_imagick\php_imagick.dll (The specified procedure could not be found.)
but mostly I receive these errors:
[25-Sep-2020 08:58:50 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'php_imagick.dll' (tried: c:/wamp64/bin/php/php7.4.9/ext/php_imagick.dll (The specified module could not be found.), c:/wamp64/bin/php/php7.4.9/ext/php_php_imagick.dll.dll (The specified module could not be found.)) in Unknown on line 0
When I install Magick using the EXE, I make sure to check the install to the path, Change the folder to C:\ImageMagick, and install the legacy drivers if possible, as suggested on Stack OverFlow.
(I also make sure to uninstall the last version I tried each time)
I have Visual Studio installed and a bunch of redistributables and also both x86 and x64 versions of these:
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
http://www.microsoft.com/en-us/download/details.aspx?id=30679
Without any luck, I went ahead and read several Stack OverFlow posts and could not find a solution.
How to install ImageMagick with Wampserver 3.0.0 64?
step-by-step instructions for installing IMAGEMAGICK on WAMP?
Installing php_imagick.dll PHP extension on wampserver 2.2
Unable to install php_imagick.dll on wamp
Imagick delegates installation on WAMP
How to install ImageMagick with Wampserver 3.0.0 64?
step-by-step instructions for installing IMAGEMAGICK on WAMP?
Installing php_imagick.dll PHP extension on wampserver 2.2
Unable to install php_imagick.dll on wamp
Imagick delegates installation on WAMP
WAMP PHP Startup Error: Unable to load dynamic library
Installing ImageMagick extension with php/windows
Linker error when trying to use ImageMagick as static libraries with Visual Studio compiler
Installing Magick++ in Visual C++ 2010
Installing Magick++ in visual studio 2019
ImageMagick with Visual Studio
WampServer and Imagemagick, imagick php module not recogized
Cannot load imagick library
ImageMagick not working
What can I try next?
typo in line 955: .php=.dll
I hired a freelancer to fix this for us.
Uninstall any versions of WampServer and ImageMagick you have installed
Don't forget to backup your database and www folder before you uninstall
We are going to install a trustable software called Chocolatey that will help us fix a bunch of errors with Wamp64 and it's extensions as well as help us update those applications with one command.
For those of you who already fixed this before using Chocolatey and
now seeing this error message again simply update Wamp and ImageMagick
using the choco commands provided on their website and then read my
note under 4) for more information
Run PowerShell as Admin
Follow this guide to Download chocolatey https://chocolatey.org/install
Use the same methods to Download Wamp64 https://chocolatey.org/packages/wamp-server
Run Wamp from the newly created shortcut on your desktop
Change the PHP version to 7.4.9 or the latest and only then move
to the other steps
Don't worry about the fact the folder is named Wamp and not Wamp64. It's still the 64bit version. You can check this in the about section of Wamp
Download https://chocolatey.org/packages/imagemagick
Download https://windows.php.net/downloads/pecl/deps/ImageMagick-7.0.7-11-vc15-x64.zip
Note: If that doesn't work, they probably updated again. Just try the same methods using newer versions then these. I will first try more recent versions of php_imagick instead of replacing the ImageMagick core DLL files. One thing I will not do is give up.
Extract And Copy all CORE_RL and IM_MOD_RL DLL files into C:\wamp\bin\php\php7.4.9 where php.exe is located
(Do not run any EXE file from here as we already installed ImageMagick)
Download https://windows.php.net/downloads/pecl/releases/imagick/3.4.4/php_imagick-3.4.4-7.4-ts-vc15-x64.zip
Extract and Copy just the php_imagick.dll file to C:\wamp\bin\php\php7.4.9\ext
Open your php.ini file by left-clicking Wamp->PHP->php.ini and then make sure you delete all leftovers and add below any extention= line the code below:
extention=imagick
(Apparently, New PHP versions require writing it without the "php_"...".dll" parts)
Restart Wamp by closing it and reopening it from its shortcut
This is by far the only solution I could get running.
choco:
Google = https://www.google.com/search?q=chocolatey
2019 = http://web.archive.org/web/20190101113929/https://chocolatey.org/
2018 = http://web.archive.org/web/20180414000310/https://chocolatey.org/
Enjoy
I use wampserver 3.2.3 64bit together with PHP 7.3.
Copying the CORE_RL and IM_MOD_RL DLLs into the PHP root direcory as orr burgel recommended in item #5 did not work for me.
I had to copy these DLLs into c:\wamp64\bin\apache\apache2.4.41\bin.

install imagick in xammp 1.8.3

I tried every article on installing imagick in xampp but non of them is worked. it is surprise to see that installing dll is not as simple as it normally suggest
i am trying imagick on xampp 1.8.3 but if any one have any idea to install imagick in xampp then please guide me
I am trying on
Windows 8 Pro 64-bit
XAMPP Version: 1.8.3
Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
firstly i installed Binary Release Win32 dynamic at 16 bits-per-pixel in C:\ImageMagick-6.8.9-Q16
then load this dll in php\ext
and lastly edit extension=php_imagick.dll in php.ini
now after restart windows i got this error
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_imagick.dll'
- The specified procedure could not be found.
lastly all other dll files have PHP 5.5.9 version but i have not found any php_imagick.dll that have PHP version 5.5 .Even this dll is also 5.3 PHP version. is this work also
Please tell me why i am getting this error
I believe that imagemagick also needs access to the CORE_RL_*.dll set which are located in the C:\ImageMagick-6.8.9-Q16 directory that you installed into.
You have to add this folder into to your PATH for these to be found at runtime.
Its a bit messy and if anyone knows a better solution than adding this to the PATH I would love to know about it.
Try downloading your php_imagick.dll from here http://windows.php.net/downloads/pecl/releases/imagick/

How to get ImageMagick running with XAMPP on Win7?

I am trying for the whole day but I cannot get my ImageMagick flying with XAMPP on a Win7 machine. I downloaded ImageMagick (for specs see below), downloaded the php_imagick.dll from the PECL website and added it to my php.ini.
ImageMagick runs smoothly in the command line. But as soon as I start my Apache (by the way, I tried with Windows reboot as well, for sure), I get one of the following error messages (I tried with different DDLs):
The procedure entry point "php_checkuid_ex" could not be located in the dynamic link library "php5ts.dll"
or
The procedure entry point "MagickGetImageGravity" could not be located in the dynamic link library "CORE_RL_wand_.dll",
(there has been a third error message where entry point was something with Draw...Alpha in CORE_RL_wand_.dll.)
Some specs:
Win7 (x64)
XAMPP, win32, v1.8.3-2, VC11
PHP v5.5.6, Compiler: MSVC11 (Visual C++ 2012)
ImageMagick-6.8.8-5-Q8-x86-dll
(I used to have the ImageMagick Q16/x64, but due to my exhausting research today I read that I should use the x86 variant as XAMPP/Apache are also running on 32bit - so I deinstalled the Q16 and installed the Q8. Unfortunately with no success.)
Anyone can help me figuring out which php_imagick.dll I need or any other idea what I have to modify so that this works?
I found the answer to basically the same question (and same tech spec). I simply had to download an older version of ImageMagick (ImageMagick-6.7.7-5-Q16-windows-dll).
(By following the linked answer above you can find a link to that version of ImageMagick and a working php_imagick.dll.)
I solve with these: https://github.com/WPN-XM/WPN-XM/issues/222
So I work with:
Win7 (x64)
XAMPP, win32, v3.2.1, VC11 with php 5.6.12
php_imagick-3.1.2-5.6-ts-vc11-x86
ImageMagick-6.9.2-0-Q16-x64-dll

php_redis.dll not working in windows

I tried both the files from here: https://github.com/nicolasff/phpredis/downloads. I am using 64bit wampserver on windows 7 professional. It looks like apache is trying to load the file but somehow could not recognize it properly. This is what I see in the error log:
PHP Startup: Unable to load dynamic library
'D:/wamp/bin/php/php5.3.13/ext/php_redis.dll' - %1 is not a valid
Win32 application.
Anyone faced similar issues? Do we have a working solution for this?
Just in case it can help someone, I managed to solve the error on PHP 7.1.12 installing the 32 bits DLL.
I was getting the error:
Warning: PHP Startup: Unable to load dynamic library '.../php_redis.dll'
not a valid Win32 application
But after installing the 32 bits version, the warning disappeared.
To know which architecture of XAMPP/WAMP are you using, visit the phpinfo() and look for the value "Architecture", it was for me on the fourth row, and as expected is had the value x86.
I had to check the Server API from phpinfo() to decide which version to use
If It's
Apache 2.0 Handler(mod_php) go with Thread Safe version
If It's CGI go with Non Thread Safe version
Unfortunately I do not run 64-bit version of PHP to test this, but for PHP 5.3 you can try this dll.
Dll from https://github.com/nicolasff/phpredis/downloads ( php_redis-2.1.3-5.2-vc6-ts-4350b2a.zip ), is working fine with PHP 5.2.17 (32-bit version).
I hope you will solve the problem.
I used XAMPP x86 / PHP 7.2.5 so I needed redis x86 and the directory is this: C:/xampp/php/ext/.
https://pecl.php.net/package/redis/4.1.0/windows
I'll add my ansewer to the table :
I used those dlls for my AMPPS server (WAMP should be the same) under windows 8 with PHP 5.5:
https://pecl.php.net/package/redis/2.2.7/windows
following this tutorial
https://www.linkedin.com/pulse/using-redis-windows-php-shekhar-joshi
I had same issue for 64 bit windows 7 wampserver with PHP5.5.12
and worked for me from below link dll binaries of Redis
http://windows.php.net/downloads/pecl/releases/redis/2.2.7/
I had the same case, I was installing wamp 32bit, but I imported the library in 64bit however I had to imorted the 32bit version.
Check in the task manager which version of wamp you are using!
For me the reason was version of Redis PHP extension that I've been used.
xampp architecture: x64
php version: 7.4
php type: ts (thread safe)
redis version installed on windows: 3.0.504
and finally the version of Redis PHP extension that worked for me was:
for php 7.4
latest stable version: php_redis-5.3.4-7.4-ts-vc15-x64
I downloaded it from this Link

How to install php_ffmpeg.dll on wamp server 2.2 windows7 64bit?

I'm getting "PHP Startup: Unable to load dynamic library: c:/wamp/.../php5.3.10/php_ffmped.dll - %1 is not Win32 application" error when run php from cli, and same error in apache error log when running as apache2 module.
I tried andswers for xampp installation
(Install FFMPEG on XAMPP)
But they didn't work for me.
It seems that difference in xampp php module is a php compiler - MSVC6 since for wamp it is MSVC9.
I killed half a day investigation this issue. Please help me out where can I get proper libs to fix this problem.
The only possible thing I can think is that maybe you don't have the correct visual c++ runtimes for your support DLLs. If the php_ffmpeg.dll is 32 bit, then it's failing to load because it can't load its msvc* dlls or one of the other DLLs (avcodec*.dll, etc) may need appropriate runtimes installed also. Download the latest Visual C++ 9.0 runtimes.

Categories