Disclaimer: before attempting to update the PHP version of your website we would highly recommend that you make a full backup of it, just in case anything goes wrong.
This guide is broken down into different parts that relate to common different distributions of Linux. It should be clarified that on any Linux distribution you can install PHP manually from source code, however the following list is focused around installation through packages.
Ubuntu / Linux Mint / Elementary OS / Zorin OS
Well maintained packages can be installed through the Ubuntu package manager. Check
this page for further details
Debian / Deepin / MX Linux
Well maintained Debian packages exist for all recent PHP branches. Check
this page for further details
openSUSE
Well maintained repositories exist for all major PHP branches. Check
this page for further details
Red Hat / Fedora / CentOS
Well maintained repositories exist for all major PHP branches. Check
this page for further details
Arch Linux / Antergos / Manjaro
Well maintained repositories exist for all major PHP branches. Check
this page for further details
Solus
Solus has it's own package management solution and PHP can be installed via the eopkg comand. Check
this page for further details
Are you still stuck?
It may be time to call in a professional to assist. Check out our
listings of PHP developers that can help upgrade or maintain your website.
Article last updated: 21st January, 2021