Hi, you can use the following steps:
To install Imagick open ssh as a root user and give this command :
yum install ImageMagick
After installing you need to know where it gets installed :
(1a) path = this is where imagick will be installed /usr/include/ImageMagick OR /usr/bin/convert
Now we need to get PHP working with this extension so we do this command in ssh (using PHP 7.3 in this demo)
/usr/local/apps/php73/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/php73/ext , link name will be imagick.so with this path /usr/local/apps/php73/lib/extensions/no-debug-non-zts-20151012/imagick.so for my demo (check /usr/local/apps/php73/lib/extensions/ folder for the no debug folder name that applies on your case) .
you can use the command
ln /usr/local/apps/php73/lib/extensions/no-debug-non-zts-20151012/imagick.so /usr/local/apps/php73/ext/imagick.so
After creating the link we need to activate the extension so we go to /usr/local/apps/php70/etc/php.d and edit the extra.ini file by adding this extension=imagick.so after adding the extension and saving the file, we go to webuzo panel and restart apache from “services”.
If you use any other PHP as a default make changes according to it.
Let us know if you need any further assistance.
|