↰ Back to blog
1
To install "Image Magick" simply go to Terminal by Applications > Accessories > Terminal
2


Copy and Paste the folowing lines to the terminal


sudo apt-get install php-pear



Then run:


sudo apt-get install imagemagick



Then run:
sudo apt-get install php5-dev


then:


sudo pecl install imagick




**if you get an error which looks like this:


configure: error: Cannot locate configuration program Wand-config 


or


 ERROR: /tmp/pear/temp/imagick/configure --with-imagick failed


then no problem, simply run the following command:


sudo apt-get install libmagickwand-dev libmagickcore-dev



Now re-run


sudo pecl install imagick




There would be something asking like "......[autodetect]" , just simply press enter once.



3

Configue in php.ini file by copy the code below to terminal


sudo gedit /etc/php5/apache2/php.ini

4

Add the following command to the php.ini 


extension=imagick.so

Services
Company
Contact us
Ambient19 Co., Ltd.
145 Ramkamhang 112-18
Saparnsung, Bangkok 10240
Thailand
Follow Us
© Copyright 2009 - 2024 Ambient19, All rights reserved.