GICT knowledge base
How to Install ImageMagick Extension on Directadmin CustomBuild
Published
The Imagick is a php extension which covers all the methods of the Imagick class which how to modify pixel based images. The Imagick PHP extension does not exist in Directadmin CustomBuild by default. To know more about ImageMagick and the components you can refer the following.
In this tutorial, we are going to install ImageMagick in Directadmin CustomBuild.
1) Log in to your server via SSH.
2) Now you have logged into your server first we need to check to ensure ImageMagick and ImageMagick-devel packages are installed on the system. You can run the following command to install the same.
yum install ImageMagick ImageMagick-devel pcre-devel
3) First, you should make sure which php version that your website is using, for that please create a php.info page in the document root of the website and call the site along with php.info (eq: http://domain.com/info.php)
Steps to create php.info file is mentioned below
Go to the document root of the website. Then create a file using the following command
Vim info.php
Add this line to this file
<? phpinfo(); ?>
Press esc key on the keyboard and type the following command then enter so that the file will be saved:
wq!
Change the ownership of info.php to the corresponding username of the cPanel account
chown (username):(username) info.php
Now check the php version of your website by calling the domain along with info.php as mentioned in the following screen shot.

4) Now you can run following commands to install ImageMagick on the server.
cd /usr/local/directadmin/custombuild
./build update
./build set imagick yes
./build imagick
./build rewrite_confs
5) Now you have successfully installed Imagick. You can also verify the same from the php info page.

If you need any further help please do reach our support department.
