ImageMagick module not available with this PHP installation on Laravel 5.4 with PHP 7

岁酱吖の 提交于 2019-12-18 06:48:54

问题


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:


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

  • Location:

You can do some thing 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



来源:https://stackoverflow.com/questions/46824621/imagemagick-module-not-available-with-this-php-installation-on-laravel-5-4-with

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!