Enable PHP opcache extension on Windows XAMPP

If your XAMPP comes with PHP 5.5+ by default, opcache already included in the bundle, you will just need to enable it. To enable the extension:

  1. Open php.ini (by default it should be located here: C:\xampp\php\php.ini).
  2. Add this line at the end of the file: zend_extension = "C:\xampp\php\ext\php_opcache.dll"
    You will need to adjust the path if you installed XAMPP in non default location.
  3. Restart Apache server.

Comments

drupalroxx said…
thank you for providing such a great help :)
Anonymous said…
And it is also working for me. Thank you!
Test Blogger said…
Hey..thanks a ton! it resolved my problem :)
scorp13 said…
A little addition about the opcache working on Windows, specifically about opcache blacklist file — it seems that when working on Windows (including XAMPP), you can not use wildcards ("*" and "?" symbols) inside it.
More info.
Alessio said…
In my php.ini I have already :

zend_extension="C:\xampp\php\ext\php_xdebug-2.6.0-7.2-vc15.dll"

How can I do? list the dll by separating them with a semicolon ?


Anonymous said…
Thanks for making this so easy!
Anonymous said…
Thanks Mr.thinker it really helped and worked for me.
Harpreet said…
Thanks for the info

Popular posts from this blog

Hiren can not load the CD ROM Driver

Sunrose USB Fingerprint Reader Driver