PHP 7.4.5 how to upgrade?

I added new repo:

apt install apt-transport-https lsb-release
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg 
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'

Installed PHP:

apt install php7.4

but only CLI was updated. How to set up new PHP on default?

Probaly you missed this part here:

You will find it under Server -> Configure -> Web Server

Checkout the release notes, in special this part here

  • Apache, Nginx + ApacheMultiphp will not be enabled automaticaly since internal mod_php module will be disabled and might cause isues with some apps when switching to php-fpm backend.To enable multiphp run the migration script: $HESTIA/install/upgrade/manual/migrate_apache.sh

Source: https://docs.hestiacp.com/release_notes/1.1.0.html#new-multiphp-system

1 Like

Без названия