Learn about Centmin Mod LEMP Stack today
Register Now

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 Premium Member Premium Member

    3,989
    414
    83
    May 31, 2014
    Ratings:
    +804
    Local Time:
    4:18 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hi

    How can i disable Zend opcache after installation?


    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,034
    11,232
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,483
    Local Time:
    11:18 AM
    Nginx 1.21.x
    MariaDB 10.x
    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
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,989
    414
    83
    May 31, 2014
    Ratings:
    +804
    Local Time:
    4:18 AM
    Nginx-1.17.x
    MariaDB 10.3.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

    49,034
    11,232
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,483
    Local Time:
    11:18 AM
    Nginx 1.21.x
    MariaDB 10.x
  5. pamamolf

    pamamolf Premium Member Premium Member

    3,989
    414
    83
    May 31, 2014
    Ratings:
    +804
    Local Time:
    4:18 AM
    Nginx-1.17.x
    MariaDB 10.3.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