Ubuntu: How to Install Upgrade php 7.3 to 7.4 version

If you want to upgrade php 7.3 to 7.4 version using command in ubuntu than I will help to show list of command to install 7.4 in your ubuntu 14, ubuntu 16, ubuntu 18, ubuntu 20.04 version.

we might be require to update version on php 7.3 because of our project requirement. you can update simply php 7 into php 7.3 version.

Ubuntu: How to Install Upgrade php 7.3 to 7.4 version - Techzost blog

we fire ondrej/php command first that will get files of new php version then we will run apt get update command that will download it, after that we will install php 7.3.

So, just run following command for update php version.

How to Install PHP 7.3 Ubuntu or Linux distro

$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt install php7.3

How to Install Install PHP 7.3 Packages Ubuntu or Linux distro

$ sudo apt install php7.3-common php7.3-cli php7.3-bcmath php7.3-bz2 php7.3-curl php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-readline php7.3-xml php7.3-zip php7.3-fpm

How to Enable PHP 7.3 in Ubuntu or Linux distro

$ sudo a2dismod php7.2
$ sudo a2enmod php7.3
$ sudo service apache2 restart

How to check php installed version in Ubuntu or Linux distro

$ php -v


This tutorial also works in other Linux distro version and Ubuntu 20.04 LTS.
Download latest version of Ubuntu 20.04 LTS official source.

Previous Post Next Post