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:
https://www.rosehosting.com/blog/how-to-install-php-7-3-on-ubuntu-16-04/
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