How to install or upgrade to PHP 5.6 on Ubuntu 14.04 LTS

How to install or upgrade to PHP 5.6 on Ubuntu 14.04 LTS

PHP 5.6 has many new features. You can install PHP 5.6 through PPA. If you don’t have PPA added below command will help to add it.

After python-software-properties is installed now we can use the below PPA

Now we can install php 5.6 with required modules

Remember to restart the web server.

To check php version use below command. This will show php version.

Below is the output on my pc.

(Visited 336 times, 1 visits today)