Search our database

How to install ImageMagick PHP extension on DirectAdmin based servers

Note: This is for DirectAdmin servers only, below are the commands to install the extension:

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

In case you get this error when trying to perform the installation steps shown earlier:

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 get the error message)

yum install ImageMagick-devel

Once the above steps are done, edit the file below:

vi /usr/local/DirectAdmin/custombuild/configure/ap2/configure.php5

Add this line and save changes:


Finally, recompile PHP with DirectAdmin’s custombuild:

cd /usr/local/DirectAdmin/custombuild
./build php n