how to change php version 8 to 7 1 in ubuntu 20 04

Solutions on MaxInterview for how to change php version 8 to 7 1 in ubuntu 20 04 by the best coders in the world

showing results for - "how to change php version 8 to 7 1 in ubuntu 20 04"
Clea
25 Jul 2020
1# php -v (default PHP version)
2
3# From PHP 8.0 to PHP 7.4:
4sudo a2dismod php8.0
5sudo a2enmod php7.4
6sudo update-alternatives --set php /usr/bin/php7.4
7sudo service apache2 restart
8
9# From PHP 7.4 to PHP 8.0:
10sudo a2dismod php7.4
11sudo a2enmod php8.0
12sudo update-alternatives --set php /usr/bin/php8.0
13sudo service apache2 restart
Michelle
02 Aug 2016
1$ sudo apt install python-software-properties
2$ sudo add-apt-repository ppa:ondrej/php
3
queries leading to this page
how to install php 8 on ubuntu 20 04upgrade ubuntu php to 8 0upgrade php 8 ubuntu 20 04ubuntu upgrade php 7 4 to 8upgrading to php 8 in ubuntu 20 04update php ubuntu 20 04 7 2php 7 4 to php 8 ubuntu 20 04echo php 7 3 terminal change php version ubuntu 20install php version 7 4 9 ubuntu 20 14how to change php version 8 to 7 1 in ubuntu 20 04ubuntu 20 php 8 to 7 4install php 8 ubuntu 20php 8 install ubuntu 20 04how to upgrade php version 8 in ubuntuupdate php version 8 0 ubuntu 20 04ubunut 20 4 upgrade to php 8 0downgrade php version ubuntu 20 04ubuntu 20 04 update to php 8ubuntu upgrade php version 8upgrade php ubuntu 20 04update php ubuntu 20 04downgrade php version from 7 to 5 6 in ubuntu 20 04how to upgrade php version to 5 6 20 ubuntuupdate php 8 0 ubuntuchange php version 22ubuntu 20 04 22ubuntu 20 04 php how to set php version 8 0 3 to 7 3upgrade php to 8 ubuntuchange php version ubuntu 20 04ubuntu change php version to 7 2php 8 upgrade in ubuntudowngrade php 7 4 to 7 3 ubuntu 20 04downgrade php 7 4 to 7 1 ubuntu 20 04default php version change ubuntu 20 04install php 8 ubuntu 20 04change php version ubuntu from 8 0 to 7 4how to change php version in ubuntu 20 04ubuntu 20 04 upgrade to php 8set php default version 7 4 ubuntu 20 04ubuntu 20 04 update php versionubuntu 20 upgrade php versionchange php version in ubuntu 20 04how to downgrade php version in ubuntu 20 04ubuntu 20 04 update phpupdate php version ubuntu 20 04php version ubuntu 20 04 changeubuntu upgrade php 8change php version ubuntu 20 04 digitaloceanchange the php version in ubuntu 20 3 apacheubuntu 20 update php to 8ubuntu 20 04 upgrade php 7change php version ubuntu 20how to update php version in ubuntu 20 04ubuntu 20 change php iniupgrade php 8 ubuntuchange php8 to php 7 4 ubuntu 20 04how to install php 8 0 7 in ubuntu 20 04ubuntu change php version to 7 3upgrade php 7 4 to 8 ubuntuupgrade php to 8 0 version ubuntuupdate php 7 4 ubuntu 20 04ubuntu 20 04 cchange php version 7 0 to 7 4how to downgrade php to php 7 4 after 8 in ubuntuhow to update php in ubuntu 20 04ubuntu 20 04 upgrade php 7 3upgrade php 8 0 8 to 8 0 10 ubuntuupgrade php to 8 version ubuntuinstall php 8 1 ubuntu 20 04ubuntu 20 downgrade php 8 to 7 4how to downgrade php 7 4 to php 5 6 ubuntu 20 04ubuntu 20 04 change php versioninstall php 8 0 ubuntu 20 04how to change 8 0 to 7 3 php version in ubuntuupgrade to 22php 8 1 22 ubuntuhow to change php version 8 to 7 1 in ubuntu 20 04