Benjamin Allison
Benjamin Allison

Reputation: 2154

Issue with Imagick in MAMP

So I followed all the instructions on this page:

http://thoomtech.com/post/8832473042/mamp-imagemagick-lion

Imagick is installed, and I can verify that imagick.so is in the appropriate folder within MAMP.

However, nothing related to Image Magick or Imagick shows up in phpinfo... and when I call new Imagick() I get an error: Class 'Imagick' not found

What I could I be missing? I'm running MAMP on Lion.

Upvotes: 2

Views: 3209

Answers (1)

emcconville
emcconville

Reputation: 24419

You'll need to load the imagick.so extension in the php.ini file used by your local MAMP server.

  • From phpinfo, locate the file under "Loaded Configuration File"
  • Edit that ini file to include the following.
extension=imagick.so
; or 
extension=/absolute/path/to/your/imagick.so

Verfiy the module was loaded successfully by running the following line in your terminal

php -m | grep imagick
# Should return 'imagick' on success

Upvotes: 7

Related Questions