How to install or enable php accelerator on xampp?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to install or enable php accelerator on xampp?

Postby hotwind » 17. February 2020 14:43

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
hotwind
 
Posts: 1
Joined: 17. February 2020 14:10
XAMPP version: xampp-windows-x64-7.1.33-1-VC1
Operating System: Win10pro-64

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

Postby Nobbie » 18. February 2020 10:57

Which PHP accelerator? There are at least 10 different products (eAccelerator, ionCube, Xcache, NuSphere, OpCache etc. pp.). Which one is used for Bitrix?
Nobbie
 
Posts: 11771
Joined: 09. March 2008 13:04

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

Postby Altrea » 18. February 2020 11:47

Referencing to the Bitrix system requirements a PHP accelerator "is highly recommended" but not required.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 10428
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby ralplpcr » 21. July 2020 20:33

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!
ralplpcr
 
Posts: 13
Joined: 17. October 2019 17:54
XAMPP version: 7.3.9
Operating System: Linux


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 88 guests