ispconfig and opcache

Discussion in 'Installation/Configuration' started by momo1240, Dec 15, 2015.

  1. momo1240

    momo1240 Member

    Hello guys
    hope I 'm in the right section and I can find some help
    Here is my situation.
    I'm using ispconfig with debian 6 and php 5.3.3.
    I've installed zend opcache. Everything seems to be ok.
    At the end I have this message :
    "install ok: channel://pecl.php.net/zendopcache-7.0.5
    configuration option "php_ini" is not set to php.ini location
    You should add "zend_extension=opcache.so" to php.ini"

    So I have undrstand that I have to create a file named "opcache.ini" and put "zend_extension=opcache.so" inside
    But Where sould I create this file
    -/etc/php5/conf.d/ ?
    /etc/php5/apache2/conf.d/ ?
    -/etc/php5/cgi/conf.d ?
    -/etc/php5/cli/conf.d ?

    thank you for your help again
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    /etc/php5/apache2/php.ini
    /etc/php5/cgi/php.ini


    if you prefer to use a file in conf.d, then that should be ok as well.
     
  3. momo1240

    momo1240 Member

    Thank you so much for your help till
    I have also to create the opcache.ini file with this config
    should I put it in /etc/php5/apache2/conf.d/ and /etc/php5/cgi/conf.d

    thank you

    # Add the following to opcache.ini
    zend_extension=/usr/lib/php5/20100525/opcache.so # File path from above
    opcache.memory_consumption=128
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=4000
    opcache.revalidate_freq=60
    opcache.fast_shutdown=1
    opcache.enable_cli=1
     

Share This Page