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

Nginx how to remove APC?

Discussion in 'Centmin Mod Insights' started by Oxide, May 10, 2015.

  1. Oxide

    Oxide Active Member

    505
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    7:31 PM
    how can i uninstall APC?

    i also installed Suhosin, does this cause any delay or server resources.. if so, how can i remove?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,848
    6,904
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,394
    Local Time:
    7:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    if you want to switch php opcode cachers from APC Cache to Xcache or Zend Opcache, you only need to use centmin.sh menu options 8 or centmin.sh menu option 12 > sub menu option 1 (for PHP <5.5, for PHP =>5.5 just do centmin.sh menu option 5 recompile) to install Xcache or Zend Opcache and script auto disables APC Cache during install of new php opcode cacher. Same if you want to switch back to APC Cache via centmin.sh menu option 9.

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                  
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Exit
    --------------------------------------------------------
    Enter option [ 1 - 23 ] 12
    --------------------------------------------------------
    
    --------------------------------------------------------
            Zend OpCache Sub-Menu             
    --------------------------------------------------------
    1). Install Zend OpCache for PHP <5.5 or <5.6
    2). Reinstall Zend OpCache for PHP <5.5 or <5.6
    3). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 3 ] 
    If you want to remove APC Cache and not install other php opcode cachers, then just edit /etc/centminmod/php.d/apc.ini file to comment out .so load line or remove apc.ini file altogether. Same process for xcache.ini or zendopcache.ini. You can find location of *.ini using SSH command
    Code:
    php --ini
    e.g. with apc.ini path /etc/centminmod/php.d/apc.ini
    Code:
    php --ini
    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/apc.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
    e.g. with zendopcache.ini path /etc/centminmod/php.d/zendopcache.ini
    Code:
    php --ini
    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/newrelic.ini,
    /etc/centminmod/php.d/zendopcache.ini
    remove .ini and restart PHP-FPM service
    Code:
    service php-fpm restart
    or command shortcut
    Code:
    fpmrestart