Page 1 of 1

How to install or enable php accelerator on xampp?

PostPosted: 17. February 2020 14:43
by hotwind
How to install or enable php accelerator on xampp in win10-64?

Needed for Bitrix CMS!
Help me please!

xampp-windows-x64-7.1.33-1-VC14

Re: How to install or enable php accelerator on xampp?

PostPosted: 18. February 2020 10:57
by Nobbie
Which PHP accelerator? There are at least 10 different products (eAccelerator, ionCube, Xcache, NuSphere, OpCache etc. pp.). Which one is used for Bitrix?

Re: How to install or enable php accelerator on xampp?

PostPosted: 18. February 2020 11:47
by Altrea
Referencing to the Bitrix system requirements a PHP accelerator "is highly recommended" but not required.

Re: How to install or enable php accelerator on xampp?

PostPosted: 21. July 2020 20:33
by ralplpcr
In theory, the extension for Zend Opcache should be included with all PHP 7 & higher builds.
However, it does not seem to be enabled by default.

To enable it, you should be able to go into your PHP.INI file and search for opcache.
Since you're running Windows, it'll likely be a .DLL file. I'm on Linux, so mine is an .SO file.
Either way, just uncomment the entry in your PHP.INI, and restart Apache.

Change:
Code: Select all
;zend_extension=opcache.so

to this:
Code: Select all
zend_extension=opcache.so

(substitute .DLL for .SO, if doing this on Windows)

You can also add a few "tweaks" to how Zend Opcache runs, if desired. They're purely optional, but can help you to fine-tune your performance.

Here's what mine has in PHP.INI:
Code: Select all
zend_extension=opcache.so
opcache.enable=1
opcache.memory_consumption=128
opcache.max_accelerated_files=3000
opcache.revalidate_freq=60


Hope this helps!