Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx Lot of 502 errors after upgrading to PHP 5.6.4

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Andy, Dec 20, 2014.

  1. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    6:42 PM
    Thank you very much, it worked.


    Now upgrading to PHP 5.6.4, it asked me:

    Code:
    Do you want to update to latest php-fpm.conf ? It will overwrite your existing php-fpm.conf [y/n]:
    Do you want to use Zend OPcache [y/n] ?
    To first one I said yes, what should I say to Zend? It says it is an alternative to APC cache and xchache.
    What should I do?
    I want to run a Xenforo forum, what to do here?
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,056
    427
    83
    May 31, 2014
    Ratings:
    +828
    Local Time:
    7:42 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    It's up to you what cache you want to use :)

    If you want APC cache just say no as APC will cache also data.
    Zend opcache is a bit faster but it doesn't cache data and you should enable and use another cache for data as Memcached .
     
  3. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    6:42 PM
    What the hell do I know which cache I want to use :)? I have no clue about the pros and cons. I said no.
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,056
    427
    83
    May 31, 2014
    Ratings:
    +828
    Local Time:
    7:42 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok check the APC and later you can try Zendopcache + Memcached so you can compare them :)
     
  5. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    6:42 PM
    Ok, I searched the forum now and see that most of the guys use Zend + Memcache instead of APC alone. Is this correct?
    And how can I disable APC and activate Zend and Memcache?
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    4,056
    427
    83
    May 31, 2014
    Ratings:
    +828
    Local Time:
    7:42 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    You can select it from centminmod menu and it will auto disable apc ...

    Memcached should be installed as default.
     
  7. eva2000

    eva2000 Administrator Staff Member

    51,947
    11,973
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,470
    Local Time:
    2:42 AM
    Nginx 1.25.x
    MariaDB 10.x
    As @pamamolf stated, when you select one type of PHP opcache like APC Cache, Xcache or Zend Opcache, all other caches are automatically disabled and unloaded.