How to install latest stable release of PHP on Ubuntu 14.04

7,907

Although http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/ is for 12.04, the steps should be the same. It seems you may have to add a PPA to get the latest version. PHP.net shows 5.5.12 as the latest stable release with a 1st May 2014 date.

Share:
7,907

Related videos on Youtube

Mahesh.D
Author by

Mahesh.D

Software Developer PHP, KOHANA, MySQL, jQuery.

Updated on September 18, 2022

Comments

  • Mahesh.D
    Mahesh.D almost 2 years

    I've installed PHP on Ubuntu14.04 as shown in this link. I currently have PHP 5.5.9 installed, but the current stable release is 5.5.12, is there any way to install current stable release on Ubuntu 14.04 ?

    • Ramhound
      Ramhound about 10 years
      The simplest way would be to replace the PHP5.5.9 installation with a 5.5.12. It should be as simple as replacing the files be sure you backup the current installation. Is there a reason you have to use 5.5.12 instead of 5.5.9 considering 5.5.12 has not been pushed for a reason?
    • slhck
      slhck about 10 years
      @Ramhound It's not that trivial to "replace the files". You cannot just backup an existing PHP installation as it's scattered across the system. Moreover, going to the latest release is advised for security reasons and critical bug fixes.
    • MariusMatutiae
      MariusMatutiae about 10 years
      Before moving on to do what @BigChris suggests, you should take a look at this post on StackOverflow where another user trying to precede you in your tracks is facing some, apparently yet unsolved, problems. stackoverflow.com/questions/23716053/…