Unable to write file with php out side home directory

why can’t write file/include file outside in php out side home directory (/mnt/data/files/) in hestiacp.
already set 0777 permission for directory.
but in vestacp with php-fpm + nginx work fine but not work in hestiacp.
$file = fopen($file, "w") or die("Unable to open file!");
Hestia Control Panel: v1.4.9
OS: debian 10.10
php-fpm 8 + nginx with Multi php

Openbase dir

It is called security…

Create a custom template where you enable it.

if i add entry to PHP-8_0.tpl then it will be lost on update or reboot?

yes, it will.

okay, thank you