Travel   Technical   About

Fawas Technical Blog

My technical knowledge to share to the societies.
Back-to-Topic-List Installing Image Magick to PHP

 
1 To install "Image Magick" simply go to Terminal by Applications > Accessories > Terminal
Installing Image Magick to PHP
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.



Installing Image Magick to PHP
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

Installing Image Magick to PHP
   
 
 
 
  HomeTripsWallpapersAbout
 
There is "NO copyright" in fawasblog.com, all detail, sentence, picture can be used without asking permission! :)   2005-2018 by Karn (Fawas) Prapertchob