Install Php5.5 or Php5.6 or Php7.0 on Ubuntu 16.04

admin/ November 6, 2016/ Linux/ 1 comments

How to install php5.5, php5.6, php7.0 on Ubuntu 16.04 ?


Use the simplest way to install php5.5 or php5.6 or php7.0 any using ondrej ppa.

Hopes it will help you.
[AdSense-C]

Step1-: Add ppa repository

$ sudo add-apt-repository ppa:ondrej/php

Step2-: Update apt source using below commands.

$ sudo apt update

Step  3-: Install php5.5

$ sudo apt-get install php5.5 php5.5-mbstring php5.5-mcrypt php5.5-mysql php5.5-xml libapache2-mod-php5.5

Additional step -: Install php5.6

$ sudo apt-get install php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml libapache2-mod-php5.6

Additional step -: Install php7.0

<pre “>$ sudo apt-get install php7.0 php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-xml libapache2-mod-php7.0

 

1 Comment

Leave a Reply