• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved PHP FPM 8.2.17 is not accurately checking cached files for changes

andreios

Regular Pleskian
Username:

TITLE


PHP FPM 8.2.17 is not accurately checking cached files for changes

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian, 18.0.59 Update #2, Ubuntu 22.04.4 LTS Linux 5.15.0-97-generic #107 x86_64

PROBLEM DESCRIPTION

PHP 8.2.17 is not checking files of changes during runtime. Only after a restart which resets the opcache.

STEPS TO REPRODUCE

Activate PHP FPM version 8.2.17 and use it an your test hosting as nginx aplication not using proxy. It should make no difference but at least I used nginx.
Create a file in / called systeminfo.php with these content:

Code:
<?php
function getSystemValue() {
    return php_uname();
}
echo getSystemValue();
?>
Go to your example website to the url example.com/systeminfo.php and see that i prints a line with information about your host like host name and versions.
Now change file content of the file to this:
Code:
<?php
function getSystemValue() {
    return php_uname(n);
}
echo getHostname();
?>
Save it, and refresh the the site with example.com/systeminfo.php

ACTUAL RESULT

You will see the same information as before. The file is cached by PHP.

EXPECTED RESULT

Now restart the corresponding PHP FPM Service on your host, and you will see, when you take another look at /systeminfo.php it only shows the host name. As expected.

ANY ADDITIONAL INFORMATION

I have downgraded everything on my Server to PHP 8.1.27, where this issue is not present.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
This does not seem to be a Plesk issue, but rather a PHP issue that should be reported to PHP developers.
 
It was opcache.validate_timestamps =0 in my main php.ini of php 8.2 not in 8.1
; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
I don't know this was turned off.
This is resolved.
 
Back
Top