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.
Hey @jasveer,
I can see you have an Ubuntu 16.04, that’s a really really really old one and it has been EOF a long time ago. You’ll need to upgrade it as soon as possible.
To do so, you can follow these steps:
remove unused packages and files
- sudo apt autoremove -y **&&** sudo apt autoclean -y
Upgrade commands
- sudo apt update -y **&&** sudo apt upgrade -y **&&** sudo apt dist-upgrade -y
Of course, before you run that, I’ll suggest creating a snapshot just to be safe in case something fails:
https://docs.digitalocean.com/products/images/snapshots/
As for enabling PHP 8, usually the following works for updated systems :
- sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
then enabling the repo
- sudo add-apt-repository ppa:ondrej/php
and lastly, instaling php 8:
- sudo apt install php8.1
Hello @jasveer
As with almost any upgrade between major releases of an operating system, this process carries an inherent risk of failure, data loss, or broken software configuration. Comprehensive backups and extensive testing are strongly advised.
To avoid these problems, we recommend migrating to a fresh Ubuntu 22.04 server rather than upgrading in-place. You may still need to review differences in software configuration when upgrading, but the core system will likely have greater stability. You can follow our series on how to migrate to a new Linux server to learn how to migrate between servers.
https://www.digitalocean.com/community/tutorial_series/how-to-migrate-to-a-new-linux-server
Regards