Tunji Olu-Taiwo

Happiness Engineer..Critical Thinker.

Install PHP

Install PHP


Installation PHP on Ubuntu

[Install PHP]
(This is install the latest available version of PHP on Ubuntu’s official apt repositories)
sudo apt-get install php

[Install a specific version of PHP]
You can install a specific version of PHP by appending the version number.
sudo apt-get install php<version_no>

e.g. sudo apt-get install php7.2 to install PHP 7.2.

[Verify the installation]
php -v
(An output showing the installed PHP version will be displayed)