Bug #80864 [Opn]: opcache.file-cache - problems on shared hosting
| From: | nikic@php.net | Date: | Wed, 17 Mar 2021 09:35:31 +0000 |
| Subject: | Bug #80864 [Opn]: opcache.file-cache - problems on shared hosting | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232803@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80864&edit=1
ID: 80864
Updated by: nikic@php.net
Reported by: t dot fronk92 at gmx dot de
Summary: opcache.file-cache - problems on shared hosting
Status: Open
Type: Bug
Package: opcache
Operating System: Debian 10
PHP Version: 7.4.16
Block user comment: N
Private report: N
New Comment:
@php at i8i dot fr: That's odd. There has only been a very small number of changes to opcache
between PHP 7.4.15 and PHP 7.4.16: https://github.com/php/php-src/compare/PHP-7.4.15...PHP-7.4.16#diff-b66a794224587a12f8650298f931f4feafb7734f00885ad885f609a68e840949
Both of these changes don't affect file cache.
Previous Comments:
------------------------------------------------------------------------
[2021-03-17 09:29:40] php at i8i dot fr
Hi,
I get this problem too when PHP switch from 7.4.15 to 7.4.16.
I had to purge all Opcache file cache.
So in your case, try to remove all this folders : /home/website1/opcache/*
Best regards,
Arnaud
------------------------------------------------------------------------
[2021-03-14 16:41:34] t dot fronk92 at gmx dot de
Description:
------------
Hi,
i have a server with multiple WordPress Websites. Every Website has his own User and PHP-FPM Pool.
I tried to activate OPcache securely - because of the Shared Cache Problem - with this settings in
every Pool:
php_admin_value[opcache.enable] = 1
php_admin_value[opcache.enable_cli] = 0
php_admin_value[opcache.memory_consumption] = 256
php_admin_value[opcache.max_accelerated_files] = 32531
php_admin_value[opcache.validate_timestamps] = 1
php_admin_value[opcache.revalidate_freq] = 0
;php_admin_value[opcache.fast_shutdown] = 0
php_admin_value[opcache.file_cache] = /home/website1/opcache
php_admin_value[opcache.file_cache_only] = 1
php_admin_value[opcache.validate_permission] = 1
Every Pool has his own settings for file-cache. I understand these settings that there is no shared
memory... only the file-cache with 256 MB for every website.
But it didnt work as expected. NGINX has many SEGFAULTS with PHP7.4 in error.log. When i deactivate
OPcache all is working fine.
With PHP7.3 i never get these SEGFAULTS.
Maybe there is a Bug in PHP or Configs are wrong - i really dont know.
I hope you can help me or show me a working solution. THX
Test script:
---------------
I dont have.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80864&edit=1