imagick Forever Updating (Current Version 0)

Richard8

Verified User
Joined
Jul 4, 2019
Messages
73
Location
USA
I installed imagick and I may have installed it via command line and then tried to install via custombuild by mistake (update?).

When I go to Update Software now, it shows imagick Current Version 0, Available Version 3.4.4 (that's what I really have installed, and seems to function), and wants me to hit the Update button. It re-installs over and over but never learns that it's already installed.

CustomBuild 2.0.0 (rev: 2149)
DirectAdmin latest prelease

It's weird because imagick does appear to work, and the available version is the latest installed on the system, but all I am seeing is a "0" and Update button.

Any thoughts? I'm pretty sure the custombuild house has been very busy with this cPanel user influx like myself. I'm definitely liking this more than EasyApache, this is my only hiccup so far and everything else is smooth.
 
I must be missing something, because now I notice on another DirectAdmin server that PHP 7.2 is now showing Current Version 0 and having the same issue, even though it's running and appears fine.
 
Headed to look at mine for you. I have imagick installed too.
 
I must be missing something, because now I notice on another DirectAdmin server that PHP 7.2 is now showing Current Version 0 and having the same issue, even though it's running and appears fine.


Code:
cd /usr/local/directadmin/custombuild
./build versions

No mention of Imagick..

Code:
./build set imagick yes
Changed imagick option from yes to yes

it is set in option.conf so that is good.

ok when I run just
Code:
./build

I see

./build imagemagick
./build imagick

as choices.. humm. Post and help search = nothing

Code:
./build imagemagick

runs and compiles.. once this finishes I will holler back
 
when I run after compile:

Code:
./build versions
Latest version of ImageMagick: 7.0.8-46
Installed version of ImageMagick: 7.0.8-46

Latest version of imagick: 3.4.4
Installed version of imagick: 3.4.4


ok do

Code:
cd /usr/local/directadmin/custombuild
./build imagemagick
./build imagick

Lets see what happens. I dont have any RPMs installed for this
Code:
 rpm -qa | grep ImageMagick
yum whatprovides ImageMagick

#convert -version
Version: ImageMagick 7.0.8-46 Q16 x86_64 2019-07-08 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(3.1)
Delegates (built-in): bzlib freetype jng jpeg png webp xml zlib
 
Last edited:
On my end:

Latest version of ImageMagick: 7.0.8-46
Installed version of ImageMagick: 7.0.8-46

Latest version of imagick: 3.4.4
Installed version of imagick: 0

Imagick 0 to 3.4.4 update is available.
 
It's weird because if I check my php info on a website, same server (php72fpm I believe?)...

imagick module version 3.4.4
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
ImageMagick 7.0.8-46 Q16 x86_64 2019-07-07 https://imagemagick.org
 
Please let us know the output of:
Code:
/usr/local/bin/php -i | grep -m1 -i 'imagick'

Because I think PHP extension hasn't been installed or installation has failed.
 
Please let us know the output of:
Code:
/usr/local/bin/php -i | grep -m1 -i 'imagick'

Because I think PHP extension hasn't been installed or installation has failed.

I get

Code:
/usr/local/bin/php -i | grep -m1 -i 'imagick'
imagick
 
No mine is all good. just wanted Richard8 to have something to compare too..
 
No mine is all good. just wanted Richard8 to have something to compare too..

I see that while my php info includes imagick information, when I run...

/usr/local/bin/php -i | grep -m1 -i 'imagick'

I get nothing returned. And it's configured with...

Build Date => Jul 5 2019 20:27:40
Configure Command => './configure' '--with-apxs2' '--with-config-file-scan-dir=/usr/local/lib/php.conf.d' '--with-curl' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/loc
al/lib' '--with-freetype-dir=/usr/local/lib' '--with-libxml-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mhash' '--with-mysql-sock=/var/lib/mysql/mysql.sock'
'--with-mysqli=mysqlnd' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=mysqlnd' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-sodium=/usr/local' '--with-webp-dir=/usr
/local/lib' '--with-xsl' '--with-zlib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enabl
e-soap' '--enable-mbstring' '--with-icu-dir=/usr/local/icu' '--enable-intl'


Wouldn't there be a --with-imagick= in there? I have two PHP versions installed (7.2 and 5.6, both fpm if I recall).

[root@]# locate imagick|grep include/php
/usr/local/php56/include/php/ext/imagick
/usr/local/php56/include/php/ext/imagick/php_imagick_shared.h
/usr/local/php72/include/php/ext/imagick
/usr/local/php72/include/php/ext/imagick/php_imagick_shared.h
 
I am going to spin up another DirectAdmin server and run my setup again to see if the problem returns, since I am seeing the Current Version 0 for imagick on one server, PHP on another.
 
[root@]# /usr/local/bin/php -i | grep -m1 -i 'imagick'
[root@]#


It exists in php info shows me all the versions for ImageMagick etc, under "imagick" options, but PHP doesn't seem to be built with it? But I see it...

[root@]# locate imagick|grep php/ex
/usr/local/php56/include/php/ext/imagick
/usr/local/php56/include/php/ext/imagick/php_imagick_shared.h
/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/imagick.so
/usr/local/php72/include/php/ext/imagick
/usr/local/php72/include/php/ext/imagick/php_imagick_shared.h
/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/imagick.so
 
I am going to spin up another DirectAdmin server and run my setup again to see if the problem returns, since I am seeing the Current Version 0 for imagick on one server, PHP on another.

Did you just try to recompile?
Code:
cd /usr/local/directadmin/custombuild
./build imagemagick
./build imagick


Deleting and rebuild is fun so no worries.. keep us posted.
 
Recompiled via command line, no changes.

I did notice at the end of the ./build imagick ....

Make complete
Installing shared extensions: /usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files: /usr/local/php56/include/php/
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/*
Restarting php-fpm72.
imagick 3.4.4 PHP extension has been installed successfully.


I restarted directadmin and httpd ('service xxx restart') as well, not sure if that is required anywhere but it still persists, I see Current Version 0 for imagick.

Figure, when I know why this is happening I will reproduce the steps for PHP 7 showing Current Version 0 on my secondary DirectAdmin.. Maybe there's some confusion with the two PHP versions (php1 is 72-fpm, php2 is 56-fpm).
 
[root@]# php -v
PHP 7.2.20 (cli) (built: Jul 5 2019 20:28:21) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

This is the same result as my backup server which shows PHP 7 as Current Version 0, they both appear to have the same PHP versions and Zend Engine.
 
Would it be possible to check it live? If not, I'm providing a few more hints :) Creating a ticket at tickets.directadmin.com would save time and let you know the root cause immediately though.

Thank you!
 
Would it be possible to check it live? If not, I'm providing a few more hints :) Creating a ticket at tickets.directadmin.com would save time and let you know the root cause immediately though.

I can open a DA ticket for custombuild issues?

I was under the impression custombuild was a separate add-on third party, which is why I asked here originally, since it's a free script and I didn't pay for it (unlike DirectAdmin). custombuild 2 + GUI plugin REALLY makes DirectAdmin a complete package.

When you say check it live, what kind of access do you need? AnyDesk remote into my Mac here, or set you up an admin account or SSH keys somewhere?
 
Back
Top