Install PHP 5.6 on Ubuntu 14.04

Aaron Lavers

Member
Registered
Joined
May 20, 2016
Messages
61
Points
8
With Ubuntu LTS 14.04 (Long Term Support), the PHP 5.5 is a good version to install on your server, if you want to install the latest version of PHP, that is PHP 7.0.6, you must download the source on the home page PHP.Net and manually compile again, it is time-consuming (compile faster or slower depending on the configuration of your server).

Note: This guide is only for the installation on your new server.

1. Add the packages to install PHP 5.6

Code:
sudo add-apt-repository ppa:ondrej/php5-5.6
then press ENTER, if you get an error then need to install python-software-properties before (then run commands on) by:

Code:
sudo apt-get update
sudo apt-get install python-software-properties
2. Update the system

Code:
sudo apt-get update
3. Install PHP 5.6

Code:
sudo apt-get install php5 -y
press ENTER and the installation process begins to take place, on the SSH you may notice with PHP 5.6 appeared. To be sure, we checked:

Code:
php5 -v
This really is easy and fast to install PHP 5.6 on Ubuntu, you can try higher PHP versions if needed.
 
Recommended Threads
Replies
4
Views
18,405
Replies
1
Views
2,102
Replies
19
Views
6,965

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top