Welcome to Centmin Mod Community
Become a Member

PHP-FPM Experimenting with APCu data only caching with PHP & Zend OpCache

Discussion in 'Centmin Mod Insights' started by eva2000, May 29, 2014.

  1. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    7:53 AM
    looks like I played too much with the server, and now im getting error 500

    I thnik I need to take a time off :)

    I will restore yesterday backup!

     
  2. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    7:53 AM
    more digging into apcu install, u need to specify the latest stable version
    Code:
    $ git clone will give you the whole repository.
    
              After the clone, you can list the tags with 
    
    $ git tag -l
    
              and then checkout a specific tag:
    
    $ git checkout tags/v5.1.8 
    
    
    if u didn't do this, the default development is the one that will be installed


    best.
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup you can checkout specific tags via git command line :)
     
  4. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    7:53 AM
    modifiying the opcache with this did not work, please advise

    Code:
    opcache.revalidate_freq=0
    opcache.validate_timestamps=0 (comment this out in your dev environment)
    opcache.max_accelerated_files=7963
    opcache.memory_consumption=192
    opcache.interned_strings_buffer=16
    opcache.fast_shutdown=1
    

    php.ini /etc/centminmod/php.d/b_customphp.ini

    dead nprestart and not appllied
     
  5. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    7:53 AM
    sorry missed that
    it is zendopcache.ini
     
  6. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:53 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Try zzz_customphp.ini and put there your code.

    Because your zendopcache.ini is parsed after your custom b_customphp.ini
    So create zzz_customphp.ini which will be parsed after zendopcache.ini
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup

    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.

    Also outlined in Getting Started Guide Step 17
     
  8. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    1:53 PM
    1.15.x
    MariaDB 10.3.x
    An FYI, but APCu is a mess which will can deadlock your server if you have php execution timeouts (and php-fpm) or have a process get killed.

    And it doesn't scale, as the more items that are cached the worse every operation performs. When full, APCu drops everything resulting in a completely empty cache.
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    indeed it does.