Installing PHP5.6 on Ubuntu 16.04

Installing PHP5.6 on Ubuntu 16.04

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

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


In case, php5.6-xmlrpc gives not found error use:

sudo apt-get install php5.6 libapache2-mod-php php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-xml php5.6-mysql

It will install PHP5.6 on your server

sudo systemctl restart apache2

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.