Upgrade PHP version

I am installing a Laravel app on Linode using Forge and it is giving me a PHP version error.

Right now I have PHP Version 7.2.1-1+ubuntu16.04.1+deb.sury.org+1.

How can I upgrade my php version and of possible, Ubuntu version too.

1 Reply

Based on my limited (n.b., DISCLAIMERS APPLY) experience with Ubuntu 16.04, you can probably install an updated php for 18.04 or 19.04 by following the directions here:


I doubt the packaging or prerequisites have changed that much (unless you have some bizarre, non-standard extension you want to use). Or, you could download the source and build it yourself (this might be more involved that you care to experience).

-- sw


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct