Skip to content

env.php keeps changing automatically

the file env.php is changing automatically and randomly.

Environment:

Cluster server

Deployer

Magento 2.4.6-p3

Redis, varnish and cloudflare

php 8.1

Here is the actual the env.php

    'session' => [
    'save' => 'db',
    'gc_probability' => 1,
    'gc_divisor' => 1000,
    'gc_maxlifetime' => 7200
],
'cache_types' => [
    'config' => 1,
    'layout' => 1,
    'block_html' => 1,
    'collections' => 1,
    'reflection' => 1,
    'db_ddl' => 1,
    'compiled_config' => 1,
    'eav' => 1,
    'customer_notification' => 1,
    'config_integration' => 1,
    'config_integration_api' => 1,
    'google_product' => 1,
    'full_page' => 1,
    'config_webservice' => 1,
    'translate' => 1,
    'vertex' => 1,
    'fishpig_wordpress' => 1
],
'http_cache_hosts' => [
    [
        'host' => 'xx.xxx.x.xx',
        'port' => 'yyyy'
    ],
    [
        'host' => 'xx.xxx.x.xx',
        'port' => 'yyyy'
    ]
],

On a random time of the day and randomly the env.php changes to this:

'session' => [
    'save' => 'Redis'
],
'cache_types' => [
    'config' => 1,
    'layout' => 1,
    'block_html' => 1,
    'collections' => 1,
    'reflection' => 1,
    'db_ddl' => 1,
    'compiled_config' => 1,
    'eav' => 1,
    'customer_notification' => 1,
    'config_integration' => 1,
    'config_integration_api' => 1,
    'google_product' => 1,
    'full_page' => 0,
    'config_webservice' => 1,
    'translate' => 1,
    'vertex' => 1,
    'fishpig_wordpress' => 1
],
'http_cache_hosts' => [
    [
        'host' => '127.0.0.1',
        'port' => '8080'
    ]
],

what has been changes is session, full_page, and http_cache_host.

Does anyone encountered a similar issue? what could be the cause of this problem?