How can I choose php 7.4 by default for all new sites?
Or do you have to switch each site with your hands from 7.3 to 7.4?
Or is the point that 7.3 is used for the admin-panel itself, because it is the default on the entire server?
How can I choose php 7.4 by default for all new sites?
Or do you have to switch each site with your hands from 7.3 to 7.4?
Or is the point that 7.3 is used for the admin-panel itself, because it is the default on the entire server?
replace 7x with version you want
cd /usr/local/hestia/data/templates/web/nginx
rm default.sh default.stpl default.tpl
ln -s PHP-7x.sh default.sh
ln -s PHP-7x.stpl default.stpl
ln -s PHP-7x.tpl default.tpl
update-alternatives --set php /usr/bin/php7.x
php -v
Are these configes rewritten when the panel is updated?
default.(s)tpl could be overwritten by updates of hestiaCP
Somewhere there is a list of folders/files that gestia will overwrite when it is updated?
This could be useful to boldly change the file without experiencing losing the changes.
It will only overwrite the default files in the template directories…
I would explicitly set the correct php version on each web domain.
Different apps like wordpress, magento 1x vs 2x, drupal, prestashop require specific php versions and web domain setting should reflect that. Even keeping them on ‘default’ I find it risky and a bad practice.