Questions tagged [opcache]

28 questions
1
vote
1 answer

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 for dozens of PHP 7.0 and PHP 5.5 applications.…
Martijn Heemels
  • 7,728
  • 7
  • 40
  • 64
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
  • 365
  • 1
  • 5
  • 15
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
  • 187
  • 1
  • 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
  • 6,499
  • 2
  • 46
  • 54
0
votes
0 answers

php-fpm high load Unexpected character

The load is not high and everything is ok When the load came up that day, it suddenly became abnormal. some mistakes: [error] 29935#0: *88148841767 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Exception: The Response content must…
FLY
  • 1
  • 1
0
votes
0 answers

How to enable PHP caching on lighttpd 1.4 with ubuntu?

I know that in PHP 8.1 I can use php-opcache that will be enabled in php.ini. How to adjust opcache to lighttpd after that?
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
  • 2
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
  • 344
  • 4
  • 8
  • 25
-1
votes
1 answer

Deployment PHP with OpCache

How do you do deployment PHP applications with enabled OpCache? My situation: I have web server with PHP 7.4 and enabled OpCache. Server is common virtual 4vCPU + 8GB RAM. I use tool Deployer - finished with switch symlink. Deployment is many times…
grogsy
  • 99
  • 2
1
2