How to install Imagick PHP extension in DirectAdmin

Imagick is disabled by default on DirectAdmin, but you can install it easily from CustomBuild by setting the value:

imagick=yes/no
imagick
imagick page

The commands to install imgick on a DirectAdmin server are:

# cd /usr/local/directadmin/custombuild
# ./build update
# ./build set imagick yes
# ./build imagick

If you have multiple PHP versions, the Imagick extension will be installed for all versions. On our test server with PHP 7.4, 7.3 and 8.0 the output log will contain:

.....
Installing imagick-3.4.4 PHP extension for PHP 74...
Found /usr/local/directadmin/custombuild/imagick-3.4.4.tgz
Extracting /usr/local/directadmin/custombuild/imagick-3.4.4.tgz...
.....
Installing imagick-3.4.4 PHP extension for PHP 73...
Found /usr/local/directadmin/custombuild/imagick-3.4.4.tgz
Extracting /usr/local/directadmin/custombuild/imagick-3.4.4.tgz...
.....
Installing imagick-3.4.4-patched-php8 PHP extension for PHP 80...
Found /usr/local/directadmin/custombuild/imagick-3.4.4-patched-php8.tgz
Extracting /usr/local/directadmin/custombuild/imagick-3.4.4-patched-php8.tgz...
.....
imagick 3.4.4-patched-php8 PHP extension has been installed successfully.

Leave a Reply