Updating PHP to the latest version

2 réponses [Dernière contribution]
gunmetalgrey
Hors ligne
A rejoint: 01/01/2014

Hi,

What's the best way to update PHP to the latest version? Trisquel's repo currently has 5.5.9, but I would like to install 5.6.20 to fulfill a dependency. Of course it's possible to install the source from php.net, but that has the potential to get messy later on. Is there another PHP repository that would keep the update simple?

Thanks!

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

There is this PPA: https://launchpad.net/~ondrej/+archive/ubuntu/php

The usual warning applies: this software being out of the control of Trisquel, it may include proprietary software or even malware. Even if it does not now, it could tomorrow along an apparently trifling update.

If you decide to trust who is behind the PPA:
$ LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install php5.6

Or you can add the PPA through the "Other Software" tab of "Software & Updates" in the "System settings" (and install it with the "Synaptic package manager").

gunmetalgrey
Hors ligne
A rejoint: 01/01/2014

Thank you!