Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM PHP 7.0.2 & Redis Cache

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by tdubs, Jan 23, 2016.

  1. tdubs

    tdubs Member

    83
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    1:42 PM
    1.7.12
    10.0.17
    Hello,

    So since I upgraded my PHP version to PHP 7.0.2 Stable, I have been experiencing issues with my forum along with Redis Cache. I noticed when I restart php-fpm I receive the following in the console messages:

    Code:
    TICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [23-Jan-2016 06:36:03] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [23-Jan-2016 06:36:03] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [23-Jan-2016 06:36:03] 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-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    done
    I also experience this in my xenForo server error messages:
    Code:
    CredisException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. - library/Redis/lib/Credis/Client.php:1161
    Generated By: Unknown Account, Today at 6:29 PM
    Stack Trace
    #0 /home/nginx/domains/domain.com/public/library/Redis/lib/Credis/Client.php(902): Credis_Client->read_reply('set')
    #1 /home/nginx/domains/domain.com/public/library/SV/RedisCache/XenForo/Model/Thread.php(46): Credis_Client->__call('set', Array)
    #2 /home/nginx/domains/domain.com/public/library/XenForo/ControllerPublic/Forum.php(219): SV_RedisCache_XenForo_Model_Thread->countThreadsInForum(130, Array)
    #3 /home/nginx/domains/domain.com/public/library/Audentio/UIX/ControllerPublic/Forum.php(22): XenForo_ControllerPublic_Forum->actionForum()
    #4 /home/nginx/domains/domain.com/public/library/XenForo/FrontController.php(351): Audentio_UIX_ControllerPublic_Forum->actionForum()
    #5 /home/nginx/domains/domain.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #6 /home/nginx/domains/domain.com/public/index.php(13): XenForo_FrontController->run()
    #7 {main}
    Request State
    array(3) {
      ["url"] => string(96) "http://www.domain.com/index.php?forums/news-announcements.130/&order=post_date&direction=asc"
      ["_GET"] => array(3) {
        ["forums/news-announcements_130/"] => string(0) ""
        ["order"] => string(9) "post_date"
        ["direction"] => string(3) "asc"
      }
      ["_POST"] => array(0) {
      }
    }
    
    Any idea how to fix this? I temporarily disabled Redis in the xenForo config for the time being.
     
    Last edited: Jan 23, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  3. tdubs

    tdubs Member

    83
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    1:42 PM
    1.7.12
    10.0.17
    I'm currently using Centmin Mod 1.2.3-eva2000.08stable. I am going to update to beta now.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yeah only 123.09beta01 branch has support for these PHP extensions on PHP 7 as those extensions are pulled from their PHP extension code repos from separate (from main) branch code of their respective code repositories. So they're essentially experimental or still in development for PHP 7 support. As such suited only for Centmin Mod 123.09beta01 branch.
     
  5. tdubs

    tdubs Member

    83
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    1:42 PM
    1.7.12
    10.0.17
    Would you recommend me running 123.09beta01 then?
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    80+ of my servers run 123.09beta01 including this forum :) But as it's beta with alot more additional features to be developed and tested, expect to update more often and hopefully provide more bug/issue reporting for 123.09beta01 specific issues at Beta Branch - Centmin Mod .09 beta branch Testing | Centmin Mod Community (1st post has how to switch to 123.09beta01 instructions and fresh install instructions).

    Change log for 123.09beta01 here
     
    • Like Like x 1
  7. tdubs

    tdubs Member

    83
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    1:42 PM
    1.7.12
    10.0.17
    So how come even after updating to 123.09beta01, I still receive this in the console when running fpmrestart:
    Code:
    NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [23-Jan-2016 07:09:54] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [23-Jan-2016 07:09:54] 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-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
     done
    
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    did you use centmin.sh menu option 23 submenu option 3 to switch to 123.09beta01 ? make sure you follow instructions in the 1st post of that thread
    if you don't fully exit centmin.sh and re-change into directory again, centmin.sh may use old code if you run centmin.sh menu option 5 within same session (unexited) from a centmin.sh menu option 23 run.