Let me take a quick guess , you’ve tried installing iMagick on Webuzo using their provided source and you noticed that is no png support on handling , well , this is a quick install and it will include a lot of file types extensions etc .
First we need to install imagick on our system , i’m using an amazon ami image in this demo :
To install imagick we open ssh (sudo su) and give this command :
yum install ImageMagick*
(make sure you have all the dependencies,the yum command might as well install dependencies, if not ,do it manually).
After installing you need to know where it gets installed :
(1a) path = this is where imagick will be installed /usr/include/ImageMagick OR /usr/include/ImageMagick-version_number ? ex: /usr/include/ImageMagick-6
Now we need to get php working with this extension so we do this command in ssh (using php 7.0 in this demo)
/usr/local/apps/php70/bin/pecl install imagick
On the install it will ask for prefix path , paste the path from (1a)
after this we need to create a link in this path /usr/local/apps/php70/ext , link name will be imagick.so with this path /usr/local/apps/php70/lib/extensions/no-debug-non-zts-20151012/imagick.so for my demo (check /usr/local/apps/php70/lib/extensions/ folder for the no debug folder name that applies on your case) .
After creating the link we need to activate extension so we go to /usr/local/apps/php70/etc/php.d and edit extra.ini file by adding this extension=imagick.so after adding the extension and saving file ,we go to webuzo panel and restart php 7.0 and apache from “services” .
And voila , you have a working php7 with imagick support .
Check if imagick is loaded and ran by php :
<?php echo "imagick is ".(extension_loaded("imagick")?"":"not ")."installed\n"; ?>