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:
wget http://pecl.php.net/get/imagick-2.3.0.tgz
tar -zxf imagick-2.3.0.tgz
cd imagick-2.3.0
phpize
./configure —with-imagick=/usr/local
make
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:
--with-imagick=/usr/local
Finally, recompile PHP with DirectAdmin’s custombuild:
cd /usr/local/DirectAdmin/custombuild
./build php n