A Linux distribution, such as Debian or Ubuntu, is a ready-made package of the operating system many servers run. It often decides which PHP version you get. If you run your own server, the distribution decides which PHP versions you can install easily and how security fixes reach you.
What is a Linux distribution?
A distribution is a complete operating system package that often ships its own patched PHP builds.
Linux itself is only the core of an operating system. A distribution adds everything around it: the package manager, the web server, the database, PHP and thousands of other programs. Debian and Ubuntu are common choices for web servers, and there are others from the Red Hat family.
Each distribution release is supported for a defined period.
For PHP, the important thing is that the distribution builds its own packages. A release comes with a specific PHP branch and keeps that branch for its entire life. The distribution team applies security fixes to its own packages, often by taking the fix from newer PHP releases and adapting it, see backport.
Versions and patch levels
Because of this, the version number of a distribution package can be misleading. The PHP version may look old while the package contains later security fixes. The reverse also happens: a package can look current while the distribution has stopped supporting the release.
What this means for your site
Which PHP version does your site report?
We read only what your site already sends in public: the headers and the top of the homepage. No scan, no login.
If your host manages the server, the distribution is their concern, but it still shapes what you are offered. A host that offers only the PHP branch of its distribution cannot give you a newer branch without changing the operating system or adding an extra package source.
On a VPS, you are the one who decides. Nobody else will install updates unless you or your host arranged it. Two clocks run at the same time: the support of the PHP branch and the support of the distribution release.
When the distribution release reaches end of life, security updates for everything on it stop, including PHP, even if the PHP branch itself is still supported by the PHP project.
How to check your setup
With shell access, read /etc/os-release to see the distribution and release, and run php -v to see the PHP version. Check the support period of that release on the distribution’s own website. Compare the PHP branch with the dates on php.net, and look at the package changelog for fixed CVE IDs.
Without shell access, ask your host three questions: which distribution release, which PHP branch, and until when it gets security updates.
When to act
Plan the move when the distribution release or the PHP branch has less than a year of support left, whichever comes first. Our PHP upgrade service can bring your site to a supported PHP version, and when the server itself is the problem, a PHP migration service moves the site to a current stack.
Not sure how this applies to your site?
Ask a person to take a look. We check which PHP version your site runs and whether the fix is in, and tell you the next step.
Or have PHP updated right away: PHP update from $555 excl. VAT
Frequently asked questions
Which Linux distribution does my server use?
Your host can tell you. If you have shell access, the file /etc/os-release names the distribution and its version.
Why is the PHP version on my server older than the newest PHP?
A distribution release ships a fixed PHP branch and keeps it for the life of that release. A newer branch usually needs a newer distribution release or an extra package source.
Does a distribution patch PHP security problems?
Distributions generally publish security updates for the PHP packages they ship, often as backports. How long this lasts depends on the support period of the distribution release.
What happens when my distribution release reaches end of life?
It stops getting security updates, including for PHP. Then you need to upgrade the operating system or move to a newer server.