Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [opcache]

The tag has no usage guidance.

0
votes
0answers
17 views

Security issue with PHP files and permissions

I have a new Debian 9 system installed. If I have a file in the web directory and then remove permissions from it so that it should not be accessible to the web it still shows as accessible. This only ...
1
vote
1answer
110 views

Apache2 php_admin_flag opcache.enable on is ignored

I run Apache 2.4.10 with PHP 7.1.17 on my Debian 8.10 server. When I try to enable opcache in a vhost the changed setting isn't applied. If I enable opcache globally in the php.ini everything is ...
1
vote
1answer
102 views

OPcache cache same file for different users only once

Is there some way to make OPcache use a hash or target a specific directory on each domain to disable use_pwd so it won't cache the same packages over and over? By default OPcache appends the working ...
0
votes
1answer
109 views

Bad response when try install opcache

I have problem for install zendopcache I try 1 time and other and always have the same result i don´t know what it´s bad because this can install with php 5.6 , thanks and also i delete and clean yum ...
0
votes
1answer
545 views

Opcache not working properly

I got problem with Opcache. It's not working as I wish/desire.. This is my opcache configuration cat /etc/php/7.1/apache2/php.ini | grep opcache [opcache] opcache.enable = 1 opcache.enable_cli = 1 ...
1
vote
1answer
336 views

PHP Application with Web Root on Amazon EFS using up too much EFS bandwidth

The web root /var/www/html is mounted on EFS Mounting with usual AWS advised command and General Purpose EFS sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-...
2
votes
2answers
210 views

How to let opcache work correctly under chroot?

There is php-fpm and opcache (downloaded and compiled from php.net) opcache.enable = 1 opcache.use_cwd = 1 zend_extension=opcache.so php-fpm profiles run in chroot, i.e. /home/user1/www/index.php -> ...
2
votes
0answers
112 views

How does apache2.4 maintains php7.0 opcache in prefork model

Does each apache2.4 child processes maintain their own opcache or is there a global opcache shared by all children?
6
votes
1answer
8k views

How to forcibly completely clear PHP7 opcache?

The opcache on my webserver keeps hitting the limit I have set even though I feel like I don't have that much PHP code and it really ought to be enough room. This is compounded by the fact that even ...
0
votes
1answer
47 views

XCache serves wrong file version from opcache

Lets say that I have two versions of the same file. One is app/v1/lib/ExampleClass.php, and another resides in app/v2/lib/ExampleClass.php. To conserve memory, xcache creates opcache for only single ...
0
votes
1answer
191 views

Opcache ignoring certain settings in php.ini after httpd restart

I have recently updated my Centos 6, Apache server to php 5.6 from 5.4 and I'm attempting to configure opcache. I have updated my opcache settings in /etc/php.ini to: [opcache] opcache....
0
votes
1answer
460 views

How to flush PHP-FPM OpCache on an autoscaling PHP cluster?

On our current monolithic LAMP servers we deploy via Capistrano and reload PHP-FPM at the end of a deployment, in order to flush the Opcode Cache. Now, we're building a new webhosting cluster on AWS ...
1
vote
0answers
315 views

What causes Opcache to manually restart

I've setup opcache with php-fpm but for some reason, it keeps manually restarting. I've not actioned a restart and I've set the force restart timeout to 2700 seconds (2 hours) so the cache shouldn't ...
0
votes
0answers
116 views

Is Zend Opcache automatically caching compiled version of PHP scripts?

I've enabled Zend Opcache. I expected it to compile and cache every single PHP script executed on my server but this doesn't seem to happen. Did I misunderstood how this cache works or I'm missing ...
0
votes
1answer
95 views

php70-php-opcache preventing CMS install

We have an Apache 2.4 box with php7 from the Remi repo working fine. PHP processing is as expected. This is apart from the php7-php-opcache package which, upon install, prevents the successful ...
0
votes
1answer
92 views

How to override the previous defined PHP value via Ansible PHP role?

I'm trying to apply override PHP's opcache.max_accelerated_files setting via geerlingguy's Ansible Role for PHP onto geerlingguy/centos6's VM using the following lines (as part of provisioning script):...
3
votes
1answer
6k views

Php 7 opcache v php 5.6 xcache

We're provisioning a new server and are deciding between (php7 / opcache) and (php5.6 / xcache). We run a few chunky ecommerce sites and want the best possible performance. I'm looking for ...
4
votes
1answer
2k views

IIS 8 with PHP 5.6: WinCache VS Zend Op Cache

Zend Op Cache is compiled by default on PHP5.5+, but IIS encourages use of WinCache for opcode caching. what is the extension that will give me the best performance and stability on IIS? there are ...
3
votes
2answers
2k views

PHP OPcache is resetting cache automatically

I started using the built-in PHP OPcache of PHP 5.6 and am facing a problem now. I set it up to use up to 1 GB of RAM, which is highly enough for my websites but it never get get it to use the full 1 ...
1
vote
2answers
274 views

Can APC and OpCache co-exist in PHP5.4

We are generally running php 5.4.x with APC enabled on CENTOS for our production sites. We have a new app that is segfaulting and the development team thinks it is because we've got APC. The app is ...