Want more timely Centmin Mod News Updates?
Become a Member

PHP-FPM Xcache install issue

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Matt Williams, Apr 23, 2015.

  1. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:46 AM
    latest
    10
    Got this message:

    Code:
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm [22-Apr-2015 23:52:00] NOTICE: PHP message: PHP Warning:  PHP Startup: XCache: Unable to initialize module
    Module compiled with module API=20100525
    PHP    compiled with module API=20131226
    These options need to match
    in Unknown on line 0
    done
    *************************************************
    * XCache re-installed
    *************************************************
    
    How to fix?
     
  2. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:46 AM
    latest
    10
    Also I see
    Code:
    Add extension=xcache.so (or xcache.dll) in /usr/local/lib/php.ini (See above)
    In the xcache admin page...

    I am running PHP v5.6.8
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,180
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    9:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    did you have xcache installed previously before reinstalling ? xcache.so should have it's own ini and should not be loaded in php.ini

    to find it type
    Code:
    php --ini
    i haven't tested Xcache in ages so don't know if it works or works with PHP 5.6.x

    stopped testing Xcache as APC Cache and Zend Opcache are both faster than Xcache
     
  4. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:46 AM
    latest
    10
    Yeap, Me to. However, I have someone in the "testing" mode

    Output after running php --ini

    Code:
    PHP Warning:  PHP Startup: XCache: Unable to initialize module
    Module compiled with module API=20100525
    PHP    compiled with module API=20131226
    These options need to match
    in Unknown on line 0
    PHP 5.6.8 (cli) (built: Apr 22 2015 15:25:25)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    [root@ngx centminmod-123.08centos7beta02]# php --ini
    PHP Warning:  PHP Startup: XCache: Unable to initialize module
    Module compiled with module API=20100525
    PHP    compiled with module API=20131226
    These options need to match
    in Unknown on line 0
    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/redis.ini,
    /etc/centminmod/php.d/xcache.ini
    
     
  5. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:46 AM
    latest
    10
    Found the problem - I was installing xCache v3.1.0 and the compatable version of xcache with php v5.6 is 3.2.0 so I reinstalled XCache with 3.2.0 and it works now
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,180
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    9:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    ah using .07 stable ? .08 beta has Xcache 3.2.0 by default
     
  7. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:46 AM
    latest
    10
    No, Was using beta02 - Installed by the menu

    Code:
    Xcache reinstall - Would you like to continue? [y/n] y
    Install which version of Xcache? (version i.e. 3.1.0): 3.2.0
    
    But I put 3.1.0 - so maybe change the (version i.e. 3.1.0): to 3.2.0 to render anyone else confusion? :=)
     
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,180
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    9:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    oh i see :)