Setup ImageMagick on Debian

To install ImageMagick, enter the following commands through SSH :

sudo apt-get install php5 php5-common gcc
sudo apt-get install imagemagick
sudo apt-get install php5-imagick
service apache2 reload