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 https://pecl.php.net/package/imagick


Perform the following steps inside SSH server.

wget https://pecl.php.net/get/imagick-3.4.3.tgz
tar -zxf imagick-3.4.3.tgz
cd imagick-3.4.3
phpize
./configure —with-imagick=/usr/local
make
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:
--with-imagick=/usr/local


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

Cancel

Thank you!