Site icon BTNHD

Installing PHP 5.6 on Ubuntu 16.04 Desktop [video]

Advertisements

Needed to install PHP 5.6 within Ubuntu 16.04 to install a Fog Server because Ubuntu automatically has version PHP 7.0 installed. Here are the commands to get you up and running.

Step 1: Adding the PPA for PHP 5.5:

sudo add-apt-repository ppa:ondrej/php

Step 2: Install your PHPv5.6 using the following commands:

sudo apt-get update
sudo apt-get install php5.6

Step 3: This step is optional, but you can install php5.6 modules using this command:

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

Step 4: This step is optional, but if you want to make sure that PHP v5.6 is installed use the following:

sudo php -v

 

Exit mobile version