Discover Centmin Mod today
Register Now

Installed Fresh Centos 7, 123.09beta01, nginx 1.19.3 , php 7.4.11 Xcache problem?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by johnnyc, Oct 22, 2020.

  1. johnnyc

    johnnyc Member

    41
    2
    8
    Mar 23, 2015
    Ratings:
    +2
    Local Time:
    4:43 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 32bit or 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.09beta01
    • Nginx Version Installed: i.e. 1.19.3
    • PHP Version Installed: i.e. 7.4.11
    • MariaDB MySQL Version Installed: i.e. not sure, installed today oct 20,2020
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.

    I said NO to zend cache (this is a Wordpress server), and I said Yes to xcache, it causes some problems, Xcache 3.2 was not installed because no file was found on lighttpd.net server, is Xcache not compatible with php 7.4.11? I tried to replace with APC and it said APC was not compatbile with php 7.4, told me to use Zend optimizer instead (which supposedly is Not compatible with wordpress sites.


    So what is the correct cache to use with wordpress 5.5.1 on php 7.4.11?

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah for best performance Zend Opcache is usually recommended and for compatibility reasons. I'll have to revisit the APC and XCache routines to see about either updating them or removing them as I haven't used the in almost 8 years now !
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    12:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hello

    For my case removing APC and Xcache and adding on the main menu the Redis installation it will be much better !

    Thank you
     
  4. redbird

    redbird Member

    84
    13
    8
    Aug 28, 2015
    Web
    Ratings:
    +22
    Local Time:
    7:43 AM
    How do I remove xcache completely as after recompiling php it's asking to re-install xcache but it's not available anymore (errror 404)?
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You should be able to just run centmin.sh menu option 12, submenu option 1 or 2
     
  6. redbird

    redbird Member

    84
    13
    8
    Aug 28, 2015
    Web
    Ratings:
    +22
    Local Time:
    7:43 AM
    Option 12 is Zendcache not xcache

    Xcache is option 8. All it does is trying to reinstall xcache which is unavailable:

    Code:
    Enter option [ 1 - 24 ] 8
    --------------------------------------------------------
    *************************************************
    * Installing XCache
    *************************************************
    
    Download xcache-3.2.0.tar.gz ...
    Initializing download: https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz
    HTTP/1.0 404 Not Found
    Error: xcache-3.2.0.tar.gz download failed.
    
    ----------------------------------------------------------------------------------
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...
    
    How do I manually remove xcache and make sure php does not try to load this extension?
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    when you run centmin.sh menu option 12 to install Zend Opcache, it automatically removes Xcache. Zend Opcache is the recommended optimal Zend Opcache replacement for Xcache.
     
  8. redbird

    redbird Member

    84
    13
    8
    Aug 28, 2015
    Web
    Ratings:
    +22
    Local Time:
    7:43 AM
    oh ok, got you. The thing is, this is a staging server where we don't need any caching
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Then you can disable Zend Opcache from loading the extension via custom .ini settings.

    For custom php settings read centminmod.com/phpfpm.html#customphpini. You might want to create /etc/centminmod/php.d/b_customphp.ini to override centmin mod defaults at /etc/centminmod/php.d/a_customphp.ini and restart PHP-FPM. Such changes will persist when doing centmin mod upgrades.

    Also outlined in Getting Started Guide Step 17

    So specifically for zendopcache.ini you want to override it with a file you create named alphabetically listed after it i.e. zz_zendoptcache.ini

    copy and make /etc/centminmod/php.d/zz_zendopcache.ini
    Code (Text):
    cp -a /etc/centminmod/php.d/zendopcache.ini /etc/centminmod/php.d/zz_zendopcache.ini

    edit /etc/centminmod/php.d/zz_zendopcache.ini and comment out the zend_extension load line with semi-colon in front
    Code (Text):
    ;zend_extension=opcache.so

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

    or via command shortcut
    Code (Text):
    fpmrestart


    If you want to re-enable Zend Opcache, just either delete /etc/centminmod/php.d/zz_zendopcache.ini and then restart PHP-FPM service again.