We will cover how to check which version you use, and how to upgrade..
Let’s first check which version you are using. To do this type the following:
convert -v | head -n 1 | cut -c 22-26
This will return a version, it might be 6.x.x or even maybe 5.x. However, the current version of ImageMagick and the most secure is 6.4.2, so assuming you aren’t using 6.4.2, the following is how to quickly and easily upgrade.
You will need to determine where your ImageMagick is installed, to do this type:
which convert
This will return a path, on cPanel servers it’ll most likely be either /usr/bin/convert or /usr/local/bin/convert. Keep this setting available as you will need it later. Please remember however, you only want to use /usr or /usr/local/, do not include “bin/convert” in the path.
- mkdir /usrc/src
- cd /usr/src
- wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.4.2-5.tar.gz
- tar xvzf ImageMagick-6.4.2-5.tar.gz
- cd ImageMagick-6.4.2
- ./configure –prefix=<whatever path currently used>
- make
- make install
- cd PerlMagick
- perl Makefile.PL
- make
- make install
Badda bing. Now do this command again:
convert -v | head -n 1 | cut -c 22-26