Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @aweiss,
I think you have bigger issues than PHP 7.2. You need to upgrade your Droplet immediately to prevent any exploits on it. Your OS is really old and as such open to vulnerabilities. I’ll recommend upgrading to 20.04 as soon as possible.
There are two ways to go about this, either upgrade your Droplet from 16.04 to 22.04 OR create a new 22.04 Droplet and migrate your app over to it. Once you do, you’ll be able to install even PHP 8 without a problem.
If you insist to install 7.2 on Ubuntu 16, all you need to do is enable the repo:
Add the PPA maintained by Ondrej Surý
sudo add-apt-repository ppa:ondrej/php
once that is done install whatever PHP extension you need.