Join the community today
Register Now

i think i broke php w/ imagemagic

Discussion in 'Install & Upgrades or Pre-Install Questions' started by ohv_, Feb 8, 2021.

  1. ohv_

    ohv_ New Member

    10
    2
    3
    Mar 30, 2016
    Ratings:
    +2
    Local Time:
    4:18 PM
    php 7.4 with ImageMagick


    Code:
    Check for php extensions
    
    Check for ImageMagicK System Updates (YUM)
    yum -y update ImageMagick ImageMagick-devel ImageMagick-c++ ImageMagick-c++-devel ImageMagick-libs LibRaw --enablerepo=remi --disablerepo=rpmforge --disableplugin=priorities,versionlock -x ImageMagick7* --disablerepo=base
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * centos-sclo-rh: la.mirrors.clouvider.net
     * centos-sclo-sclo: mirror.keystealth.org
     * epel: d2lzkl7pfhq30w.cloudfront.net
     * extras: repos.lax.quadranet.com
     * remi: remi.xpg.com.br
     * updates: mirror.shastacoe.net
    Package(s) ImageMagick-devel available, but not installed.
    Package(s) ImageMagick-c++-devel available, but not installed.
    No packages marked for update
    
    real    0m6.367s
    user    0m2.639s
    sys     0m0.237s
    
    Loaded plugins: fastestmirror, priorities, versionlock
    Deleting versionlock for: 0:LibRaw-0.19.4-0.el7.remi.*
    versionlock deleted: 1
    Loaded plugins: fastestmirror, priorities, versionlock
    Deleting versionlock for: 0:ImageMagick-c++-6.9.11.60-1.el7.remi.*
    Deleting versionlock for: 0:ImageMagick-libs-6.9.11.60-1.el7.remi.*
    Deleting versionlock for: 0:ImageMagick-6.9.11.60-1.el7.remi.*
    versionlock deleted: 3
    Loaded plugins: fastestmirror, priorities, versionlock
    Adding versionlock on: 0:LibRaw-0.19.4-0.el7.remi
    Adding versionlock on: 0:ImageMagick-c++-6.9.11.60-1.el7.remi
    Adding versionlock on: 0:ImageMagick-libs-6.9.11.60-1.el7.remi
    Adding versionlock on: 0:ImageMagick-6.9.11.60-1.el7.remi
    versionlock added: 4
    
    7.4
    0
    /opt/rh/devtoolset-8/root/usr/bin/gcc
    /opt/rh/devtoolset-8/root/usr/bin/g++
    
      -march=                               haswell
      -mavx                                 [enabled]
      -mavx2                                [enabled]
      -mavx256-split-unaligned-load         [disabled]
      -mavx256-split-unaligned-store        [disabled]
      -mavx5124fmaps                        [disabled]
      -mavx5124vnniw                        [disabled]
      -mavx512bitalg                        [disabled]
      -mavx512bw                            [disabled]
      -mavx512cd                            [disabled]
      -mavx512dq                            [disabled]
      -mavx512er                            [disabled]
      -mavx512f                             [disabled]
      -mavx512ifma                          [disabled]
      -mavx512pf                            [disabled]
      -mavx512vbmi                          [disabled]
      -mavx512vbmi2                         [disabled]
      -mavx512vl                            [disabled]
      -mavx512vnni                          [disabled]
      -mavx512vpopcntdq                     [disabled]
      -mpclmul                              [enabled]
      -mprefer-vector-width=                none
      -msse                                 [enabled]
      -msse2                                [enabled]
      -msse2avx                             [disabled]
      -msse3                                [enabled]
      -msse4                                [enabled]
      -msse4.1                              [enabled]
      -msse4.2                              [enabled]
      -msse4a                               [disabled]
      -msse5
      -msseregparm                          [disabled]
      -mssse3                               [enabled]
      -mtune-ctrl=
      -mtune=                               haswell
      Known preferred register vector length (to use with the -mprefer-vector-width= option)
    
      -march=                               x86-64
      -mavx                                 [disabled]
      -mavx2                                [disabled]
      -mavx256-split-unaligned-load         [enabled]
      -mavx256-split-unaligned-store        [enabled]
      -mavx5124fmaps                        [disabled]
      -mavx5124vnniw                        [disabled]
      -mavx512bitalg                        [disabled]
      -mavx512bw                            [disabled]
      -mavx512cd                            [disabled]
      -mavx512dq                            [disabled]
      -mavx512er                            [disabled]
      -mavx512f                             [disabled]
      -mavx512ifma                          [disabled]
      -mavx512pf                            [disabled]
      -mavx512vbmi                          [disabled]
      -mavx512vbmi2                         [disabled]
      -mavx512vl                            [disabled]
      -mavx512vnni                          [disabled]
      -mavx512vpopcntdq                     [disabled]
      -mpclmul                              [disabled]
      -mprefer-vector-width=                none
      -msse                                 [enabled]
      -msse2                                [enabled]
      -msse2avx                             [disabled]
      -msse3                                [disabled]
      -msse4                                [disabled]
      -msse4.1                              [disabled]
      -msse4.2                              [disabled]
      -msse4a                               [disabled]
      -msse5
      -msseregparm                          [disabled]
      -mssse3                               [disabled]
      -mtune-ctrl=
      -mtune=                               generic
      Known preferred register vector length (to use with the -mprefer-vector-width= option)
    
      -march=                               haswell               |   -march=                               x86-64
      -mavx                                 [enabled]             |   -mavx                                 [disabled]
      -mavx2                                [enabled]             |   -mavx2                                [disabled]
      -mavx256-split-unaligned-load         [disabled]            |   -mavx256-split-unaligned-load         [enabled]
      -mavx256-split-unaligned-store        [disabled]            |   -mavx256-split-unaligned-store        [enabled]
      -mpclmul                              [enabled]             |   -mpclmul                              [disabled]
      -msse3                                [enabled]             |   -msse3                                [disabled]
      -msse4                                [enabled]             |   -msse4                                [disabled]
      -msse4.1                              [enabled]             |   -msse4.1                              [disabled]
      -msse4.2                              [enabled]             |   -msse4.2                              [disabled]
      -mssse3                               [enabled]             |   -mssse3                               [disabled]
      -mtune=                               haswell               |   -mtune=                               generic
    
      -march=                               haswell               |   -march=                               x86-64
      -mavx                                 [enabled]             |   -mavx                                 [disabled]
      -mavx2                                [enabled]             |   -mavx2                                [disabled]
      -mavx256-split-unaligned-load         [disabled]            |   -mavx256-split-unaligned-load         [enabled]
      -mavx256-split-unaligned-store        [disabled]            |   -mavx256-split-unaligned-store        [enabled]
      -mpclmul                              [enabled]             |   -mpclmul                              [disabled]
      -msse4                                [enabled]             |   -msse4                                [disabled]
      -msse4.1                              [enabled]             |   -msse4.1                              [disabled]
      -msse4.2                              [enabled]             |   -msse4.2                              [disabled]
      -mtune=                               haswell               |   -mtune=                               generic
    
    GCC_NONNATIVEFLAGS=
    
    *************************************************
    * Installing imagick PHP Extension
    *************************************************
    /usr/local/src/centminmod
    cd /svr-setup
    7.4
    0
    1
    make: *** No rule to make target `clean'.  Stop.
    Configuring for:
    PHP Api Version:         20190902
    Zend Module Api No:      20190902
    Zend Extension Api No:   320190902
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for pkg-config... /bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether ccache gcc accepts -g... yes
    checking for ccache gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... ccache gcc -E
    checking for icc... no
    checking for suncc... no
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking target system type... x86_64-pc-linux-gnu
    checking for PHP prefix... /usr/local
    checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
    checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20190902
    checking for PHP installed headers prefix... /usr/local/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for gawk... gawk
    checking whether to enable the imagick extension... yes, shared
    checking for pkg-config... /bin/pkg-config
    checking ImageMagick MagickWand API configuration program... checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/Wand-config... Doesn't exist
    checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/local/bin/Wand-config... Doesn't exist
    checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/Wand-config... Doesn't exist
    checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/sbin/bin/Wand-config... Doesn't exist
    checking Testing /opt/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/bin/Wand-config... Doesn't exist
    checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/local/bin/Wand-config... Doesn't exist
    configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.
    
    Copying imagick.ini > /etc/centminmod/php.d/imagick.ini
    
    service php-fpm restart
    Redirecting to /bin/systemctl restart php-fpm.service
    *************************************************
    * imagick PHP installed
    *************************************************
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer (TBA)
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 24
    --------------------------------------------------------
    
    --------------------------------------------------------
    Please bookmark:
    --------------------------------------------------------
    ###############################################################
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Find the latest Centmin Mod version - http://centminmod.com
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Google+ Page latest news http://centminmod.com/gpage
    * Community Forums https://community.centminmod.com (signup)
    ###############################################################
    # Cheap VPS Hosting at Digitalocean
    # https://www.digitalocean.com/?refcode=c1cb367108e8
    ###############################################################
    
     checking for YUM updates... please wait...
    
    -------------------------------------------------------------
      New YUM Updates available for host area2ext.blackmesalabs.net
    -------------------------------------------------------------
      To list available YUM Updates type:
    -------------------------------------------------------------
      yum list updates --disableplugin=priorities,versionlock --setopt=deltarpm=0 --enablerepo=remi
    -------------------------------------------------------------
      Following Updates are available:
    -------------------------------------------------------------
    LibRaw.x86_64                         0.19.4-1.el7                          base
    
    -------------------------------------------------------------
      To update type these commands:
    -------------------------------------------------------------
      yum update --disableplugin=priorities --setopt=deltarpm=0 --enablerepo=remi
    
    
    
    -------------------------------------------------------------
    * Current Nginx Version: 1.19.5 (031220-222818-centos7-vmware-69b7d34)
    * Latest Nginx Available: 1.19.6 (centminmod.com/nginxnews)
    -------------------------------------------------------------
    
    -------------------------------------------------------------
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    -------------------------------------------------------------
    [12:21][root@area2ext.blackmesalabs.net centminmod]# php -v
    PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP 7.4.15 (cli) (built: Feb  7 2021 10:30:53) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
        with Zend OPcache v7.4.15, Copyright (c), by Zend Technologies
    
     
  2. ohv_

    ohv_ New Member

    10
    2
    3
    Mar 30, 2016
    Ratings:
    +2
    Local Time:
    4:18 PM
    i removed the app and ran

    yum -y install ImageMagick ImageMagick-devel ImageMagick-c++ ImageMagick-c++-devel ImageMagick-libs LibRaw

    seemed to help clear it up.

    Code:
    372 packages excluded due to repository priority protections
    Excluding 4 updates due to versionlock (use "yum versionlock status" to show them)
    Installed Packages
    ImageMagick.x86_64                                                                                       6.9.11.60-1.el7.remi                                                              @remi
    ImageMagick-c++.x86_64                                                                                   6.9.11.60-1.el7.remi                                                              @remi
    ImageMagick-c++-devel.x86_64                                                                             6.9.11.60-1.el7.remi                                                              @remi
    ImageMagick-devel.x86_64                                                                                 6.9.11.60-1.el7.remi                                                              @remi
    ImageMagick-libs.x86_64                                                                                  6.9.11.60-1.el7.remi                                                              @remi
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    9:18 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Interesting if you run cmupdate and re-run centmin.sh menu option 15 does it work ?