Install or upgrade php 7.2 to 7.3 ubuntu command

If you want to upgrade php 7.2 to 7.3 version using command in ubuntu than i will help to show list of command to install 7.3 in your ubuntu 14, ubuntu 16, ubuntu 18 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.

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.

Install PHP 7.3

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

sudo apt install php7.3

Install PHP 7.3 Packages

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

PHP 7.3 Enable

sudo a2dismod php7.2

sudo a2enmod php7.3

sudo service apache2 restart

Now you can check by following command:

php -v

I hope it will help you...

February 7, 2019 | Category : PHP
Related Posts