Welcome to Centmin Mod Community
Become a Member

PHP-FPM How can i disable Zend opcache?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, May 20, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    8:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    How can i disable Zend opcache after installation?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,142
    6,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,131
    Local Time:
    3:56 PM
    Nginx 1.13.x
    MariaDB 5.5
    type
    Code (Text):
    php --ini

    example
    Code (Text):
    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/geoip.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/mailparse.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini

    find path to zendopcache.ini and edit file to comment out the extension load line with hash in front of it and restart php-fpm
     
    • Like Like x 1
  3. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    8:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Is there anyway to exclude from zend opcache a php file like:

    Code:
    /home/nginx/domains/mydomain.com/public/folder/file.php
    ?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,142
    6,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,131
    Local Time:
    3:56 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  5. pamamolf

    pamamolf Well-Known Member

    2,720
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    8:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Great :)

    So can i add two lines for example on the opblacklist.txt file?

    Code:
    /home/nginx/domains/yourdomain.com/public/folder/file.php
    /home/nginx/domains/yourdomain.com/public/file.php