Php On Ubuntu
Linux

Method To Install Multiple Versions Of PHP On Ubuntu 16.04/17.10

In this tutorial, we will show you the method to install multiple version of PHP on ubuntu operating system.

How To Install Multiple Versions of PHP on Ubuntu 16.04/17.10 via PPA

sudo apt install software-properties-common

sudo add-apt-repository ppa:ondrej/php

sudo apt update

Now, use the command below to install PHP7.2 on Ubuntu 16.04/17.10.

sudo apt install php7.2 php7.2-fpm

Now, you can install various extensions for php 7.2:

sudo apt install php7.2-mysql php7.2-mbstring php7.2-xml php7.2-gd php7.2-curl7

Step to install PHP7.1 on Ubuntu 16.04/17.10

sudo apt install php7.1 php7.1-fpm

Install 7.1 extensions

sudo apt install php7.1-mysql php7.1-mbstring php7.1-xml php7.1-gd php7.1-curl

If you want to install other version like  PHP7.0 and PHP5.6, you can simply do it by following above methods. You just need to replace the php version number. f



READ THIS ALSO  Kali Linux 2017.2 Released : Download It Now

Subscribe To Our Newsletter.

Join our mailing list to receive the latest linux tutorials, tips & tricks, freebies,news and updates from our team.

You have Successfully Subscribed!