PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 19, 2022

[FIXED] How to install ImageMagick on Windows 7 (2)

 September 19, 2022     imagemagick, imagick, php     No comments   

Issue

Hopefully, despite similar question titles, this isn't a duplicate issue.

I've installed ImageMagick-6.7.5-6-Q16-windows-dll.exe.

I have php_imagick_dyn-Q16.dll renamed to php_imagick.dll in PHP's ext directory.

I have extension=php_imagick.dll in my php.ini.

I try to run a basic test: php -r "var_dump(class_exists('Imagick'));".

I get this error:

PHP Startup: imagick: Unable to initialise module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options must match.


CLI has stopped working.
Windows can check online for a solution to the problem.
> Check online for a solution and close the program
> Close the program

What have I done wrong?


Solution

  1. First install : Link

  2. Download : http://www.sk89q.com/2010/03/vc6-windows-binaries-for-imagick-2-3-0/

  3. Choose the TS one

  4. Open your php.ini file

  5. Add this line :

    extension=php_imagick.dll

  6. Restart your apache server

    open php_info()

Now your imagick lib is ready to use.

This works for me.



Answered By - idrezzz
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing