C
C
camradee2018-05-30 13:49:38
PHP
camradee, 2018-05-30 13:49:38

How to install Image Magick for PHP7.x?

I didn’t install it before, so googling I found that you need to first install the library, then the php module and reload Apache:
$ sudo apt-get install imagemagick
$ sudo apt-get install php-imagick
$ sudo /etc/init.d/apache2 restart
Everything seems to be installed, but phpinfo() does not show image magick, while php -m in the console shows imagick. Correspondingly, the module was not put down. Where is the error or what did I not install?
PHP Version 7.2
ubuntu 16.04

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
camradee, 2018-05-30
@camradee

eventually helped /etc/init.d/php7.2-fpm restart

S
Sergey, 2018-05-30
@butteff

There is exactly the same problem and solution through pecl and manual editing of php.ini
https://askubuntu.com/a/833845

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question