Question

Problem installing ImageMagick /Imagick!

Hi, I have installed centos/virtualmin everything is running fine. I have installed ImageMagick according to the following link “http://www.tecmint.com/install-imagemagick-in-linux/

I am able to see the extension through php -m | grep imagick command but not able to see any installation of the same in phpinfo();

Any clues would be helpful… thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello there,

What happens when you execute the following commands on the server?

  1. php -i | grep -i imagick
  1. php -m | grep imagick

Can you share the output? Also what you can do is to create an info.php file. You can create a file named info.php (the name doesn’t really matter) and put the following content in the file:

  1. <?php
  2. phpinfo();

You can then check which is the configuration file - php.ini that is currently used and so we can edit it. You can also check this with the PHP -i command again:

  1. php -i | grep -i php.ini

Then you can edit the listed php.ini and add the following line:

extension=imagick

Note that this line can already exist there but might be commented out, e.g listed like this: ;extension=imagick

If that is the case just remove the ; and save the php.ini file.

Once this is done you can restart the Apache server and check again.

  1. sudo service apache2 restart

Hope that this helps! Regards, Alex

Perhaps a tip, if you install this in ubuntu:

  1. imagick commandline version apt-get install imagemagick

  2. imagick php extention sudo apt-get install php5-imagick

  3. restart apache service apache2 restart

and you’re done.

Are you still experiencing this issue or did you manage it to get it to work?