For Managed Servers

This article explains how to install the latest version of ImageMagick on a managed server.

Please Note

An older version of ImageMagick is pre-installed on the managed server. The installation is only necessary if you need the latest version.

ImageMagick is a library that enables PHP programs to manipulate graphics. ImageMagick can handle up to 100 different graphic formats, including .jpg, .png, .tif etc.

  • Log in to your managed server via SSH.

  • Download the source code of ImageMagick with the wget command. Example:

  • Unpack the archive with the following command:
    tar xfvz ImageMagick.tar.gz

  • Use the cd command to change to the directory containing the source code. Example:
    cd ImageMagick-6.7.4-1/

  • Use the pwd command to display the path of the directory. You will need it later for the installation and the output will look something like this:

  • Prepare the compilation of the program with the command ./configure. Since you do not have access rights to the directory specified in the script, use the --prefix option to install ImageMagick in a subdirectory of your home directory. Here is an example of how to enter the ./configure command:
    ./configure --prefix=/customers/homepages/30/d339922114/htdocs/ImageMagick

  • Enter the command make. If there is no error message, enter the command make install in the next prompt.

  • The installation is now complete and you can access the most frequently used functions of ImageMagick by calling ./ImageMagick/bin/convert in your scripts.