Get the most out of your Centmin Mod LEMP stack
Become a Member

PHP-FPM Automate ImageMagick YUM update + rebuilding

Discussion in 'Centmin Mod Insights' started by BobbyWibowo, Jul 20, 2016.

  1. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    8:48 AM
    1.17.x
    10.3.x
    If I understand this correctly, ImageMagick, or maybe its PHP extension, needs to be rebuilt by Centmin Mod after upgrading it. So yeah, because I thought that adding ImageMagick to yumcron will not be good, considering that it will only upgrade the ImageMagick and won't trigger Centmin Mod to rebuild the PHP extension, I blacklisted it from yumcron. But after all these months manually running the 15th option of Centmin Mod, which would update ImageMagick through YUM and then rebuilt its PHP extension, I was thinking that it was starting to be a pain to do it manually. Which is why I was wondering, is it possible to update ImageMagick and tell Centmin Mod to rebuild its PHP extension right after that, automatically?

    Ps. I'm not really sure where to post this thread. So if I posted this in the wrong section, feel free to move it.

     
    Last edited: Jul 20, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    latest 123.09beta01 centmin.sh menu option 15 routline adds a bypass setting for imagick.ini = imagick.skip_version_check=1 just uncomment it and restart php-fpm
    path to imagick.ini via command php --ini
    Code (Text):
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/mailparse.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini
    

    /etc/centminmod/php.d/imagick.ini contents
    Code (Text):
    extension=imagick.so
    ;imagick.skip_version_check=1
    

    however, it's just a warning message and not an error when mismatched versions so doesn't hurt anything to leave yumcron updating system imagemagick only
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:48 AM
    Mainline
    10.2
    No, Sometimes it causes some issue uploading images.
    I've encountered that many times when imagick has the latest version but php module hasn't rebuilt.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh really .. hmmm will have to see what can be done

    though yumcron shouldn't update imagemagick as it's in remi repo unless you pass --enablerepo=remi as a flag to yumcron
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    8:48 AM
    1.17.x
    10.3.x
    Awesome. Thanks! I'll try it as soon as possible.
     
  7. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:48 AM
    Mainline
    10.2
    I specifically enable that repo :D.