ImageMagick module not available with this PHP ins

2019-02-18 16:47发布

Currently, I have cloned a project. I have PHP 7 on Ubuntu 14.04 64-bit.

The ImageMagick library is installed using the following command

sudo apt-get install php-imagick

But when I try image manipulation through this library, it throws the following exception

(1/1) NotSupportedException
ImageMagick module not available with this PHP installation.

How can I install this software with the latest PHP version?

Note: I am using Laravel 5.4 in this project.

1条回答
劳资没心,怎么记你
2楼-- · 2019-02-18 17:11

You have to add extension=imagick.so in your php.ini file.

  • Location :

You can do some yhing like this for the fastest way :

php -i | grep 'php.ini'

The result is like that :

Loaded Configuration File => /usr/local/lib/php.ini

Or call <?php phpinfo(); ?> from some php file to get this information :)

PS : Source

查看更多
登录 后发表回答