Articles on: Direct Admin

How to Install ImageMagick PHP Extension on Direct Admin Server

NOTE: The latest source code repository for ImageMagick can be found at

Perform the following steps inside SSH server.

tar -zxf imagick-3.4.3.tgz
cd imagick-3.4.3
./configure —with-imagick=/usr/local
make install

The above steps should be sufficient to complete the installation of ImageMagick. You may perform the following steps if you encounter the following error message.

configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.

Install ImageMagick-devel package and try again: (Not necessary if you do not receive the error message)

yum install ImageMagick-devel

Next, edit the file below:
vi /usr/local/DirectAdmin/custombuild/configure/ap2/configure.php5

Remember to add this line and save the changes:

Recompile PHP with Direct Admin's custom build:
cd /usr/local/DirectAdmin/custombuild
./build php n

Updated on: 13/11/2018

Was this article helpful?

Share your feedback


Thank you!