Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ext-imagick * -> the requested PHP extension imagick is missing from your system

I have trouble installing devisephp for laravel. I am working on the latest version of homestead with php7. when i do composer update i get the following error.

Problem 1
    - Installation request for devisephp/cms 1.4.* -> satisfiable by devisephp/cms[1.4.0].
    - devisephp/cms 1.4.0 requires ext-imagick * -> the requested PHP extension imagick is missing from your system.

After having this message i installed imagick on my homestead environment added the extension to php.ini in cli and fpm and checked in homestead if imagick is working with a test file. Everything was working perfectly but on running composer update i still get the same error message from above. Does anyone have a clue what the problem can be.

The stange thing is that is kan git clone devisephp its bootstrap version completely working including image handling but when i add another package to laravel i again get the above message.

like image 700
maesk Avatar asked Mar 06 '16 16:03

maesk


People also ask

How do I enable Imagick extension in PHP?

To enable Imagick for your website, go to your Site Tools -> Dev -> PHP Manager. Click the PHP Extensions tab and find the entry for the “imagick” extension in the list that appears. Then click the Change value button (pencil icon), select the On radio button for Status and save the changes.

How do I add Imagick?

You just have to activate it from cPanel's PHP Selector, click for the imagick checkbox in the Extensions tab. In order to test if the extension is active, you can do so by creating an info. php file. Open it in a browser and look for the ImageMagick extension - if it works it should be in this list.


2 Answers

Please follow these steps

  • sudo apt-get install php-imagick
  • php -m | grep imagick // this should print 'imagick' it means installed correctly
  • sudo service apache2 restart //(if needed)
like image 57
Isha Avatar answered Sep 28 '22 18:09

Isha


if you really can't install or don't want that extension to be validated you may skip it by supplying the

--ignore-platform-reqs

flag to your composer command

like image 29
Roman86 Avatar answered Sep 28 '22 18:09

Roman86