exif and imagick installation

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,296
Location
Maastricht
It's a good find, and ofcourse a good recommendation to others.

Maybe it's also possible that DA can fix this in custombuild for systems with multiple php versions.
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,580
Directadmin only uses /usr/local/lib/php.ini on Centos servers, however on our newly installed Centos 7 server that is also the only one present from DA,[cut]
Don't you have /usr/local/php72/lib/php.conf.d/10-directadmin.ini? (replace php72 with your php version) Check if imagick.so is added there.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,296
Location
Maastricht
Don't you have /usr/local/php72/lib/php.conf.d/10-directadmin.ini?
No in my case it's in /usr/local/lib/php.conf.d/10-directadmin.ini directory. And it's stated in there indeed. So you're correct.
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,580
You should also have /usr/local/php72/lib/php.conf.d/10-directadmin.ini (replace php72 with your php version).

In my case I have both /usr/local/php72/lib/php.conf.d/10-directadmin.ini and /usr/local/lib/php.conf.d/10-directadmin.ini, however it is /usr/local/php72/lib/php.conf.d/10-directadmin.ini that is used for PHP 7.2.x on my servers, and not /usr/local/lib/php.conf.d/10-directadmin.ini
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,296
Location
Maastricht
You should also have /usr/local/php72/lib/php.conf.d/10-directadmin.ini (replace php72 with your php version).
No I don't on both newly installed servers and neither on both VPS systems. Maybe because we only use 1 php version.
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,580
Strange. I am also only using one PHP version (php-fpm). Maybe DirectAdmin has made som changes that only affect new installs.
 

Arieh

Verified User
Joined
May 27, 2008
Messages
1,229
Location
The Netherlands
Little update, I now also see it loaded in /usr/local/lib/php.conf.d/10-directadmin.ini and /usr/local/php73/lib/php.conf.d/10-directadmin.ini (for mod_ruid and my php-fpm 7.3).

And it complained it was now being loaded twice, so I removed my instances in the php.ini's. I guess CB had put it there after some update/rewrite.
 

maxi32

Verified User
Joined
Jul 25, 2016
Messages
91
Location
Malaysia
I notice that Centos8 use GraphicsMagick (the latest forked of ImageMagick) and don't have ImageMagick repo by default. Hope that custombuild can include this as well. Thanks.
 

bruceburstein

New member
Joined
Jul 6, 2020
Messages
1
You're probably in this forum because a WordPress Site Health Analysis provided a Recommended Improvement:
"Warning The optional module, Imagick, is not installed, or has been disabled." (FYI, the word "warning appears in yellow microprint and appears to be a yellow 'em-dash'; you can only see the term by copy/paste into a text editor.)

The ImageMagick extension, called Imagick when referring to the PHP extension, is a native PHP extension to create and modify images using the ImageMagick API. Do I/you need this??

I figured the easiest way to add the php extension would be through WHM -> EasyApache 4, but don't bother, Imagick is not there.

You can add it through WHM -> Software -> Module Installers -> PHP PECL -> (search) Imagick

But:
1) the latest version is 3.4.4 (2019-05-02)
"The 3.4.4 release is intended to be the last release (other than small bug fixes) that will support either PHP 5.x, or ImageMagick 6.x. The next planned release will be PHP > 7.0 and ImageMagick > 7.0 at least, if not higher."
[see: http://pecl.php.net/package/imagick]
[see: http://pecl.php.net/package-changelog.php?package=imagick&release=3.4.4]

2) Confusingly, the Imagick Extension description also refers to a similar name product - "ImageMagick" with a different version number; don't confuse these:
"Imagick is a native php extension to create and modify images using the ImageMagick API. This extension requires ImageMagick version 6.5.3-10+ and PHP 5.4.0+."
[see: http://pecl.php.net/package/imagick]

3) I noted, through the above pathway and search, that Imagick 3.4.4 was installed in my php 7.2 folder [/opt/cpanel/ea-php72/root/usr/lib64/php/modules] but not my 7.3 folder. I remain hesitant to install it in 7.3 as it appears Imagick 3.4.4 is EOL and I have not found any Imagick 7.x versions.

Thus, I have decided not to install it in php 7.3 and will await the availability of the 7.x versions.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,296
Location
Maastricht
But this is not WHM nore cPanel and imagick as well as Imagmagick can be installed via DA's custombuild.
Got one of them running on Centos 7 with php 7.2.
 
Top