Discover Centmin Mod today
Register Now

PHP-FPM Update to php7 Centminmod recommend me to delte a file that doesn't exist

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Sep 11, 2016.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +836
    Local Time:
    10:46 AM
    Nginx-1.26.x
    MariaDB 10.6.x
    Hi :)

    Today i give php7 a try :)

    All was ok and no issues.....

    I just notice at the end this Centminmod recommendation:

    Code:
    rm -rf /etc/centminmod/php.d/igbinary.ini
    #rm -rf /etc/centminmod/php.d/imagick.ini
    #rm -rf /etc/centminmod/php.d/memcache.ini
    #rm -rf /etc/centminmod/php.d/mongodb.ini
    #rm -rf /etc/centminmod/php.d/redis.ini
    rm -rf /etc/centminmod/php.d/suhosin.ini
    So i navigate to the folder and there i was able to find the igbinary.ini but not the suhosin.ini

    So maybe Centminmod needs a fix there to proper detect it?

    Also when phpfpm restarted during setup i was getting this:


    Code:
    Starting php-fpm [11-Sep-2016 01:16:23] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/geoip.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    [11-Sep-2016 01:16:23] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0
    Thanks :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,153
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:46 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    For mailparse and geoip, which version of PHP 7.0.10 or 7.1.0RC1 ? got the php upgrade log from /root/centminlogs ? post contents of log to pastebin.com or gist.github.com

    rm -rf command removes without any error messages, so if file doesn't exist, it just does nothing.
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +836
    Local Time:
    10:46 AM
    Nginx-1.26.x
    MariaDB 10.6.x
    PHP 7.0.10

    I didn't say that i got any errors for this.....just the centminmod recommend me to delete a file that was not in place:

    rm -rf /etc/centminmod/php.d/suhosin.ini

    So if i understand correct how it works it should output:

    Code:
    rm -rf /etc/centminmod/php.d/igbinary.ini
    #rm -rf /etc/centminmod/php.d/imagick.ini
    #rm -rf /etc/centminmod/php.d/memcache.ini
    #rm -rf /etc/centminmod/php.d/mongodb.ini
    #rm -rf /etc/centminmod/php.d/redis.ini
    #rm -rf /etc/centminmod/php.d/suhosin.ini
    Is it dangerous to auto removed by Centminmod and not prompt at all?
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,153
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:46 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    should be fine with copy and paste instructions
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +836
    Local Time:
    10:46 AM
    Nginx-1.26.x
    MariaDB 10.6.x
  6. eva2000

    eva2000 Administrator Staff Member

    55,153
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:46 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ending output for below suggests all compiled fine so ok :)
    Code (Text):
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done

    i updated 123.09beta01 to revise the .ini file removals when php 7.0 or 7.1 is detected as well :)