Search code examples
phpwampserverapcopcache

Not Work Opcache on Wampserver 2.4


i add this following code in php.ini

    [opcache]
    zend_extension = "c:/wamp/bin/php/php5.4.16/ext/php_opcache.dll"
    opcache.enable = 1
    opcache.memory_consumption = 300
    opcache.interned_strings_buffer = 8
    opcache.max_accelerated_files = 8000
    opcache.fast_shutdown = 1
    opcache.enable_cli = 1
    opcache.use_cwd = 1

but not working.


Solution

  • The download

    php_opcache-7.0.5-5.3-ts-vc9-x86.zip
                      ^^^
    

    is for PHP5.3

    You say you are using PHP5.4 so you need the

    php_opcache-7.0.5-5.4-ts-vc9-x86.zip
                      ^^^