Laravel 4 - ImageMagick is not available when installing PHP

trying to get ImageMagick to work on my local machine, but will get an error:

ImageMagick module not available with this PHP installation. 

I have never seen this error, so I'm not sure where to go from here. I am running PHP 5.6.2 (according to MAMP), and since I first saw the error that ImageMagick installed with homebrew and then tried installing mac, but I still get the same problem.

Any help?

+6
source share
2 answers

I understand that some time has passed since you asked this question, however I ran into this problem. In my case (using HomeBrew) I just installed ImageMagick and the PHP module using:

 brew install imagemagick brew install php55-imagick apachectl restart 

It is important to restart APACHE after installation.

As for your question (MAMP), there are many instructions on the Internet for installing ImageMagick using MAMP, see How to install Image Magick for MAMP (Pro) on Mountain Lion (10.8.2)

As one comment says, ImageMagick comes with MAMP, you just need to enable it.

Hope this helps someone :)

+2
source

Same problem using manor, apt and nginx:

  • Enter the manor

  • sudo apt-get update && sudo apt-get install -y imagemagick php5-imagick && sudo service php5-fpm restart

+2
source

Source: https://habr.com/ru/post/978296/


All Articles