Join the community today
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

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    8:42 AM
    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

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Useful Useful x 1
  3. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    9:42 AM
    1.11
    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

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Useful Useful x 1
  6. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    8:42 AM
    Awesome. Thanks! I'll try it as soon as possible.
     
  7. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    9:42 AM
    1.11
    10.2
    I specifically enable that repo :D.