Extension of open_basedir directive was removed

In file /etc/php/7.4/fpm/pool.d/my_web.tld.conf, I extended the open_basedir with /home/username/.some_file.
It worked fine for a few days and then suddenly the extension was removed and the open_basedir directive return to its original form.

The question is why it happened and how to prevent it from happening again.
Thank you very much

Hestia rebuilds ever update the config files to prevent this behaviour create a specific template and assign the template in the settings

https://docs.hestiacp.com/admin_docs/web.html#how-can-i-change-settings-for-a-specific-domain

1 Like

Thank you eris,
I found /usr/local/hestia/data/templates/web/php-fpm/PHP-7_4.tpl
Should I change this file?
Or duplicate it to a new file USERNAME-PHP-7_4.tpl with the changes?

Create a new file we can update in some cases the default templates…

Great, I’ll do do it.
Thank you very much :+1:

Sorry, I duplicated /usr/local/hestia/data/templates/web/php-fpm/PHP-7_4.tpl
to /usr/local/hestia/data/templates/web/php-fpm/USERNAME-PHP-7_4.tpl

Does not work.
What is my mistake?

Screenshot 2021-08-14 at 23.13.41

You still need to select the correct template

I lost you :slight_smile:
Where should I select the correct template?

Edit web domain → Advanced options

WOW !! You did it :shaved_ice:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.