Discover Centmin Mod today
Register Now

PHP-FPM How do I uninstall FFMPEG's PHP extension?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by BigIron, Aug 10, 2016.

  1. BigIron

    BigIron Member

    49
    10
    8
    Sep 18, 2015
    Ratings:
    +13
    Local Time:
    4:19 PM
    Ran into some issues installing FFMPEG + FFMPEG PHP Extension via the menu (centminmod 123.09beta01 and PHP 7.0.9). I'm not technical enough to tell you what happened, but I'd be happy to forward the log files if it'd help :)

    Code:
    FFMPEG PHP Extension installed
    restarting php-fpm service ...
    
    Gracefully shutting down php-fpm  done
    Starting php-fpm [06-Aug-2016 00:25:11] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/ffmpeg.so' - /usr/local/lib/php/extensions/no-d
    ebug-non-zts-20151012/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [06-Aug-2016 00:25:11] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151
    012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
     done
    
    check phpinfo for FFMPEG PHP Extension...
    
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/ffmpeg.so: cannot open shared object fi
    le: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file
    : No such file or directory in Unknown on line 0
    Extension 'ffmpeg' not present.
    
    Total FFMPEG PHP Extension Install Time: 7.347895112 seconds
    
    
    


    Ended up going with the pre-compiled binaries, but I'd like to get rid of this PHP error:

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 7.0.9 (cli) (built: Aug  8 2016 18:50:13) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.9, Copyright (c) 1999-2016, by Zend Technologies
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,051
    6,591
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,786
    Local Time:
    9:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    You can temp disabe or unload the extension load line in ffmpeg.ini and redis.ini files

    the command below lists all custom PHP extensions' ini file paths for extensions added by Centmin Mod specifically
    Code (Text):
    php --ini


    find the respective .ini path file and edit it and comment out the extension load line or remove the actual .ini file(s) and restart PHP-FPM service

    example
    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/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/mongodb.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/suhosin.ini


    restart PHP
    Code (Text):
    service php-fpm restart

    or with command shortcut
    Code (Text):
    fpmrestart
     
    • Like Like x 1
  3. BigIron

    BigIron Member

    49
    10
    8
    Sep 18, 2015
    Ratings:
    +13
    Local Time:
    4:19 PM
    Thanks!