Menu Close

How to install ImageMagick in WHM/CPanel VPS

In this tutorial, I will explain how to install ImageMagick in WHM/CPanel VPS.
1. Login to the VPS using ssh as root.
2. Download the latest ImageMagick file from here using wget

# wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

3. If you can not download it using wget, then maybe you have FTP restriction at your Firewall, disable your Firewall for a momment, as for my case, I am using CSF, so I ahve to disable it for a momment. After downloading complete, you have to turn on or re-enable your Firewall
4. Extract the downloaded file

# tar xvfz ImageMagick.tar.gz

5. Check the extracted directory name, for example ImageMagick-6.6.5-9
6. Change to the extracted directory

# cd ImageMagick-6.6.5-9
or
# cd ImageMagick*

7. Configure the package for the system

# ./configure

8. Make the installation file

# make

9. Install the package to the WHM/Cpanel

# make install

10. Verifying the installation using the following command

# /usr/local/bin/convert logo: logo.gif

11. Make a comprehensive test

# make check

Leave a Reply

Your email address will not be published. Required fields are marked *