Page 1 of 1

How to change PHP 7 to PHP 5.6 on Ubuntu16 - Discussion

Posted: Mon Sep 05, 2016 3:29 am
by shahid


By default Ubuntu 16.04 (Xenial) comes with php 7.0. But You can install php 5.6 on it

Code: Select all

add-apt-repository ppa:ondrej/php

Code: Select all

apt update

Code: Select all

apt install php5.6 libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc

Code: Select all

a2dismod php7.0

Code: Select all

a2enmod php5.6

Code: Select all

service apache2 restart


For More In Detail Visit - D.I.Y techFactory - Blog