Questions tagged [opcache]

25 questions
1
vote
2 answers

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 complicated and really needs an opcode cache. We…
Wyatt Barnett
  • 725
  • 5
  • 14
0
votes
1 answer

PHP-FPM stops seeing classes / functions at random

I am experiencing a strange issue with php-fpm (7.0.33). At random times it starts throwing errors like: PHP message: PHP Fatal error: Uncaught Error: Call to undefined function untrailingslashit() Restarting php-fpm fixes it. There is no specific…
0
votes
1 answer

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 version of those files. But the problem arises…
Palethorn
  • 103
  • 3
0
votes
1 answer

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.revalidate_freq = 0 opcache.validate_timestamps =…
Arth
  • 353
  • 5
  • 14
0
votes
0 answers

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 something?
Revious
  • 175
  • 12
0
votes
1 answer

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 installation of Wordpress. The original wp-config.php is…
pmelon
  • 21
  • 4
0
votes
1 answer

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): php_opcache_enabled_in_ini:…
kenorb
  • 5,943
  • 1
  • 44
  • 53
0
votes
0 answers

PHP OpCache on Amazon EFS

Looking for some validation of my thought process here. I don't have the stats to hand to back up my claims, but have enough experience with web hosting with and without EFS to be comfortbale in making it. A Joomla or WordPress PHP site being served…
jsjw
  • 23
  • 2
0
votes
1 answer

Load Balance (http) nodes slower when Redis is non-local

We run a load balance with 3 Windows 2019 servers. One of them is the "master" one, serving SMB share to the other nodes, and it's also the server that Redis runs on (Redis used for sessions and cache). But this master srever is also a HTTP…
Alex
  • 3
  • 1
0
votes
2 answers

Why a PHP module is not loaded into PHP?

Showing my case how to debug the problem, that a PHP module is not loaded into PHP. I use OpenSUSE v42.2 Linux OS, with Apache webserver, PHP v7.1, Mysql. Because it does not provide PHP v7.1 I need, I built PHP v7.1 from source. Using PHP-FPM. I…
klor
  • 304
  • 4
  • 8
  • 24
1
2