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

shahid
Site Admin
Posts: 5
Joined: Thu Jun 02, 2016 11:43 am
Gender: Male - Male

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

Postby shahid » Mon Sep 05, 2016 3:29 am



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

Return to “ubuntu”



Who is online

Users browsing this forum: No registered users and 1 guest