• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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