Want to subscribe to topics you're interested in?
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 Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:31 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!
     
    • Like Like x 1
  2. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:31 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.
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    yup you can checkout specific tags via git command line :)
     
  4. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:31 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 Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    9:31 AM
    sorry missed that
    it is zendopcache.ini
     
  6. Sunka

    Sunka Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    9:31 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    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
     
    • Agree Agree x 1
    • Winner Winner x 1
  7. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    127
    57
    28
    Nov 16, 2015
    Ratings:
    +166
    Local Time:
    3:31 PM
    1.11.x
    MariaDB 10.1.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.
     
    • Winner Winner x 1
    • Informative Informative x 1
  9. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    indeed it does.