Real Simple

Step 1: Install Imagemagick

$ apt-get install imagemagick

Step 2: Imagick support for PHP

$ apt-get install php5-imagick

Step 3: Restart Apache

$ /etc/init.d/apache2 restart

if you need imagemagick for your Ruby, you can install the librmagick-ruby package.