I guess technically this is not really Virtualmin-related, but I've seen posts about it in the forum here and I am trying to get this working on a Virtualmin server, and some of what I've done involved working with Virtualmin.
I've followed instructions located in various places to install Imagemagick:
yum install gcc php-devel php-pear
yum install ImageMagick ImageMagick-devel
pecl install imagick
echo "extension=imagick.so" > /etc/php.d/imagick.ini
systemctl restart httpd
After the pecl install imagick command I got reams of output indicating "deprecated" errors (as just about all posts I've found on the Web about Imagemagick also show), but at the end it also indicated:
Build process completed successfully
install ok: channel://pecl.php.net/imagick-3.4.4
configuration option "php_ini" is not set to php.ini location
You should add "extension=imagick.so" to php.ini
I also put the above "imagick.ini" file in /etc/opt/rh/rh-php72/php.d as well as the line at the end of /home/USER/etc/php7.2.
However, none of this results in any meaningful output about Imagemagick (or imagick) from phpinfo():
Inside Virtualmin at Server Configuration -> Website Options I see imagick under PHP 5.4.16, but not 7.2. I have restarted Apache multiple times each time I made a change.
"imagick.so" is on the system:
[root@test php7.2]# locate imagick.so
The test machine is a GPL installation (installed moments ago), but I'm using that to test the installation before doing it on my Pro production installation. However, I doubt that's a material difference.
Anything I'm doing wrong here?