- 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
then press ENTER, if you get an error then need to install python-software-properties before (then run commands on) by:
2. Update the system
3. Install PHP 5.6
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:
This really is easy and fast to install PHP 5.6 on Ubuntu, you can try higher PHP versions if needed.
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
Code:
sudo apt-get update
sudo apt-get install python-software-properties
Code:
sudo apt-get update
Code:
sudo apt-get install php5 -y
Code:
php5 -v