Install PHP 7.2 on Ubuntu Linux

A very short compilation how to install PHP 7.2 on any Ubuntu distribution.

1. Add PHP repository

bash

sudo add-apt-repository ppa:ondrej/php

2. Update package list

bash

sudo apt-get update

3. Install PHP 7.2

bash

sudo apt-get install php7.2

4. Install PHP extensions

bash

sudo apt-get install php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml php7.2-sqlite3

Leave a Reply

Your email address will not be published. Required fields are marked *