The real elephant in the room is that hosting platforms and normal server operating systems support and maintain versions of PHP for years after the PHP project stops doing so.
It doesn't really matter what the PHP project does or doesn't support. RHEL/Ubuntu will get you updates for five to ten years even if PHP drops support after a week, as can the repositories that are derived from them.
If you're running PHP 7.4 on Rocky 8.4, you have nothing to worry about for a couple years, despite what alarmist blogs may be shouting.
PHP's fast pace is good for the language, which has improved immensely over the years, but that doesn't reflect what PHP users have ever been running. For the exact same reason, KDE/Gnome users running this year's or even last year's version are only a small segment of the total user base, despite there not even being any notable LTS support.
What WordPress has sold for years, that a website totally does not need someone remotely technical, was just a lie and is starting to really crumble down.
Two Wordpress websites I built for neighbors in 2014 have always self-updated to the last version and nothing ever broke. I just bump the PHP version on their shared hosting panel. Of course strictly no third-party plugins nor themes, only slim themes I wrote at the time. The one thing Wordpress has for it is backwards compatibility, but it’s also what is slowly killing it.
Recently I also helped a few small nonprofits I know IRL to either migrate their WP site to a statically generated site, pointing an agent at it created a perfect replica in about an hour, or just migrate everything to the last version to be able to upgrade their old PHP. Again, pointing Claude at it with a general « setup a mirror on PHP 8.5, report any breakage, upgrade anything needed and work through scripts to avoid needing excess reads » upgraded and fixed their spaghetti and tower of plugins in about 2 hours. Not going into too much technical details since everyone here knows what needs to be done but of course I made it setup a dev environment (that no one will ever use) and tests along the way.
So it is possible. But the first step is explaining to the owners that the « buy once and let live » model was never possible to begin with and that Wordpress culture has (implicitly, nobody writes that anywhere) sold them a mirage.
Edit : to be fair to Wordpress and don’t give them an intent, it’s more of a « small business owner » culture problem than a Wordpress culture problem, but Wordpress embraced it by never breaking anything. In the small business owner culture, paying for new features was already questionable so paying for invisible maintenance is very far-fetched.
I’m so glad to not have anything to do with the web agency space professionally anymore.
> What WordPress has sold for years, that a website totally does not need someone remotely technical, was just a lie.
Not the only reason. When I was maintaining the website of a company I worked for, I avoided updating WordPress or any of the installed plugins as much as possible.
It's been years since, but WordPress in particular was very, very finicky and the smallest of changes can bring an entire installation down with no easy way to fix it.
I hated everything about WordPress, from the framework itself to the plugins, to the culture in the community.
I've since moved to django, and it's like going from a failed state to living in a Nordic nation.
A lot of people on old servers with old PHP are only ever going to risk the smallest upgrade they can, to avoid deprecation issues.
There's a deprecation in PHP 8.0 to do with the order of parameters with default values that will bite a lot of code.
In PHP 8.2, they deprecated creation of dynamic properties on classes without #[AllowDynamicProperties] pragmas or __get/__set accessors. That one also messes with a fair bit of code, though it's an easy enough thing for an LLM to just add that attribute to every class.
There's also the "left behind" tax: the older your server becomes through sheer complexity of upgrading, the more likely you are to have to compile PHP from source, which is not the nicest when you are likely to have to replace a distribution version that had a bunch of packages installed.
I was in this position for one machine for PHPShell; I had to build the patched 7.4. I happen to know that the deprecations in 8.2 will bite me, but the old project is going to get a more considerable overhaul sooner than that, so that it is in more LLM-friendly patterns.
Random side note: if you are revitalising an old PHP app and intend to migrate it away from PHP to another language, one sane intermediate step you might consider is reworking it to use the Slim framework ( https://www.slimframework.com ) which uses a compact form of route closure definition that is so similar to e.g. Express, Gin, the core Golang http.Handle APIs etc. that it will be a much easier task to scrutinise when you get there. LLMs seem positively giddy about the prospect. Type hints would help, too.
> lot of old PHP are only ever going to risk the smallest upgrade they can, to avoid deprecation issues in extremely old codebases.
This is becoming a rapidly dangerous mindset. The cost and risk of forking and fixing an abandoned piece of code is trending to zero and the risk of being pwned when leaving an EOL library publically exposed to the internet is trending to 100%.
Even the cost and risk of completely removing an unmaintained library is also trending to zero.
LLMs have a lot more patience for enumerating test-cases, automating tests and creating staging environments and magnitudes more than sysadmins have ever had.
The case for "don't touch it don't break it" is getting increasingly indefensible.
I don't disagree with any of this. But it is the case.
And you have to remember that a lot of this code is just not in reproducible environments. So there's a fair chunk of setup effort involved in even getting an LLM to be able to safely work on it.
Like I say, the "left behind" tax is a serious problem with this stuff.
Most PHP/Python/Nodejs framework sites are auto-generated throw-away projects, that might run for 2 to 3 years at most.
Most people expect community-code PHP sites to fall apart eventually, as the people that deployed the host are usually already at another company years later.
Usually the fix is to spider a site into static html content, and nuke the dynamic rotting framework part from orbit. =3
> Most PHP/Python/Nodejs framework sites are auto-generated throw-away projects, that might run for 2 to 3 years at most.
Nothing that has survived into this problem space is throw-away, or it would have been thrown away.
There's a lot of solid, boring, just-works PHP that nobody has touched because it works, that now won't run on enforced newer environments because of deprecations. And as the pace of PHP improvement sped up around 8.x, so did the pressure to leave that working code on older PHP versions.
Not saying this is necessarily the case here, but you vastly underestimate just how enormously untested and fragile these legacy systems can be. Even an LLM can need a very skilled operator to succeed in such an environment.
These kinds of systems often not only rely on every possible bug, they can rely on every possible side channel as well. And they often don't have any sort of testing or staging environment where screwups are recoverable.
The problem is more the stuff that isn't fragile, has run well for a decade, and not been updated, perhaps because other things hold that back.
I have one of these apps. Good code, modular structure (but very bespoke, and much of it quite an old design pattern), has a dev environment (but that environment is also old), makes use of a few now quite old dependencies. Works really well, and as a freelancer I simply don't get the billable time to fix what "ain't broke", so it gets improvements as it gets new feature requests.
The problem is that it ain't broke, in fact. Nevertheless I fully know the IIABDFI days are gone.
I am recovering from severe burnout and untangling its dependencies, restructuring it into more modern architecture that will be more amenable to LLM management, but as with any serious legacy code there's a lot to deal with from several directions at once.
Even figuring out how to describe its architecture concisely to an LLM is a multi-phase project! It will be easier to semi-manually modernise some things so that there is less explaining to do.
As it happens, getting it to literally just run on more recent PHP will be a much easier problem.
> Even figuring out how to describe its architecture concisely to an LLM is a multi-phase project! It will be easier to semi-manually modernise some things so that there is less explaining to do.
You don't need to do this anymore. Ask the LLM* to describe its architecture to you.
*edit - a good, frontier LLM - like Astra/Sol/Opus
I don't underestimate it, but if you still have this problem - it is more of a people/process problem than a technical one.
No staging or testing environment? Get the LLM to create one... Can't create one because of external dependencies/APIs? Get the LLM to reverse engineer you a very convincing mock of that dependency/API - each time there is an observed difference between the real and staging environment, just throw the LLM at fixing it.
The main barriers to achieving any of this is not technical. I'm sure there's places out there where none of the above is possible because those responsible for the systems don't have access to them.
The skilled operator used to be the one dude who knew how the system worked - who didn't have the time to do anything but fight fires. Now days, the skill is understanding how to get the LLM cranking in a good loop and letting it cook. You don't need 20 years of working on a system to know how it works anymore. The most important architectural decision you need to have is to have version-controlled code, infra and monitoring so that the LLM can reason about the system. I suspect many of these legacy systems do not even have source control, but the good thing is that once again, a like-for-like migration such as capturing all the details of a current system and representing it as code is another good example of a self-verifying task that LLMs are also great at.
Every year we get posts about this. Every year, we need to point out that bug fixes get back ported by others. It seems like many in the open source community forget how open source works. The official release is EOL but very few use the official release instead get their binaries from a third party provider.
Blogs like this make more sense when you realise the point isn’t to raise awareness that PHP versions are dropping from official support. It’s to raise awareness of the business or freelance individual who works on PHP services.
At least this blog has a lot of data in it, and is well presented. So I do congratulate the author for doing a thorough job. Which is more than can be said for 99% of the other sales pitches that are written as blogs.
I have about 50 old clients with Wordpress websites on a server.
Some of them I created more than a decade ago. Wordpress may do auto updates, but compatibility with plugins and old themes is not there.
I am always trying to patch small things to make a site work with a newer PHP version; if it needs more time or even a big refactor/replace of plugins/theme, then I contact the clients and offer them an upgrade path with a price to pay unless they are paying for continues support.
There can be a lot of incidents on a live web server with dozens of websites; quite a few times such incidents come from old WordPress plugins with naive implementations; I always have a proper setup, isolating each website, every client with no cross-access and execution rights and I even block some dangerous PHP functions using `disable_functions` config directive.
PHP is one part of a big chain of actions and configurations that must be done right; but there are more things to do in order to keep a server less exposed to bad actors.
A guy who commissioned a WP website and didn't secure a retainer, is likely to pay between 20 to 100 USD to have somebody update it. Triple that for a PHP version update.
For many WP site owners, that is not worth doing and the site will become another malware host. Unless you have sone benevolent, trustworthy dev to recommend to them.
Note that just two days ago, I was scolded for suggesting that an AI agent could even perform local desktop configuration, much less a server:
The model of contracting a dev to set up a website and then leaving it alone is long dead. If you can’t maintain your site you need to use a hosted platform that manages this all for you. Otherwise it will be hacked.
> The model of contracting a dev to set up a website and then leaving it alone is long dead.
Dead as it may be, many small businesses still do it anew, and many old websites are still hosted over a decade since the OS has last received a security update.
In my experience clicking the website link on google maps, most small businesses websites are either on a managed platform like shopify, the link is totally dead, or it shows some malware page.
If there is a server on the internet that hasn't been updated in a decades, it's currently running a bitcoin miner and serving malware.
There’s still a web server and operating system that may need to be patched even if you’re serving nothing but static html, unless you’re using a hosted platform as the parent says.
They listed a "platform that manages this all" as an alternative to a web dev. You're calling pure html hosting a "platform" but that sounds like a very different meaning of "platform" to me.
I Have over 300 sites in management and most of them will continue to remain in outdated environment because I know clients cannot afford this upgrade.
You will have to do it for free with AI or something because sooner or later they will leave you. Even if you bring it up, they will leave you on the spot. Don't rock the boat; whatever they are paying is enough to update those sites for free at this point. Or I will replicate the same sites for free on $2 hosting.
My perspective: the hyper clouds and their relentless marketing campaign to persuade people they should never consider being a sysadmin, has eroded very important skills around “lower level” systems ownership. Finding a good Linux sysadmin or network admin is tough these days.
How many of those are actually on the latest/recent patch release anyway? Doesn't really matter if it's EoL in Jan (in that it's not news, I mean) if they're not updating while it is supported anyway.
This is a classic 80-20 rule. Of those 50% of websites, I'd wager 80% are likely stale, unused, out-of-date, and irrelevant. And solely still around because some line item somewhere has said "Hosting ....... $24.99" every month for the past 15 years.
I'm not saying it's not a problem, but probably not as big as article might make it seem to be.
Are these sites even keeping up with patches, though? Being on a supported version can help deploy a fix when forced into a corner, but if you don't have an established, regularly exercised update process, you're still in for a world of pain, as I'm sure plenty of PHP admins have found out recently.
A lot of “vanilla” WordPress websites will not have many (if any) problems updating. The core software supports auto updates with either 1 click or even that can be allowed to be triggered automatically.
What is more likely to cause problems of course is plugins or themes. We all know software is somewhat of a “hack on it until it works” but how much hacking is what separates “custom” software from off the shelf.
Also, many shared hosting providers charge an extra fee if your site is on an old PHP Version so by upgrading you might even save a few bucks a month.
It doesn't really matter what the PHP project does or doesn't support. RHEL/Ubuntu will get you updates for five to ten years even if PHP drops support after a week, as can the repositories that are derived from them.
If you're running PHP 7.4 on Rocky 8.4, you have nothing to worry about for a couple years, despite what alarmist blogs may be shouting.
PHP's fast pace is good for the language, which has improved immensely over the years, but that doesn't reflect what PHP users have ever been running. For the exact same reason, KDE/Gnome users running this year's or even last year's version are only a small segment of the total user base, despite there not even being any notable LTS support.
Two Wordpress websites I built for neighbors in 2014 have always self-updated to the last version and nothing ever broke. I just bump the PHP version on their shared hosting panel. Of course strictly no third-party plugins nor themes, only slim themes I wrote at the time. The one thing Wordpress has for it is backwards compatibility, but it’s also what is slowly killing it.
Recently I also helped a few small nonprofits I know IRL to either migrate their WP site to a statically generated site, pointing an agent at it created a perfect replica in about an hour, or just migrate everything to the last version to be able to upgrade their old PHP. Again, pointing Claude at it with a general « setup a mirror on PHP 8.5, report any breakage, upgrade anything needed and work through scripts to avoid needing excess reads » upgraded and fixed their spaghetti and tower of plugins in about 2 hours. Not going into too much technical details since everyone here knows what needs to be done but of course I made it setup a dev environment (that no one will ever use) and tests along the way.
So it is possible. But the first step is explaining to the owners that the « buy once and let live » model was never possible to begin with and that Wordpress culture has (implicitly, nobody writes that anywhere) sold them a mirage.
Edit : to be fair to Wordpress and don’t give them an intent, it’s more of a « small business owner » culture problem than a Wordpress culture problem, but Wordpress embraced it by never breaking anything. In the small business owner culture, paying for new features was already questionable so paying for invisible maintenance is very far-fetched.
I’m so glad to not have anything to do with the web agency space professionally anymore.
Not the only reason. When I was maintaining the website of a company I worked for, I avoided updating WordPress or any of the installed plugins as much as possible.
It's been years since, but WordPress in particular was very, very finicky and the smallest of changes can bring an entire installation down with no easy way to fix it.
I hated everything about WordPress, from the framework itself to the plugins, to the culture in the community.
I've since moved to django, and it's like going from a failed state to living in a Nordic nation.
There's a deprecation in PHP 8.0 to do with the order of parameters with default values that will bite a lot of code.
In PHP 8.2, they deprecated creation of dynamic properties on classes without #[AllowDynamicProperties] pragmas or __get/__set accessors. That one also messes with a fair bit of code, though it's an easy enough thing for an LLM to just add that attribute to every class.
There's also the "left behind" tax: the older your server becomes through sheer complexity of upgrading, the more likely you are to have to compile PHP from source, which is not the nicest when you are likely to have to replace a distribution version that had a bunch of packages installed.
I was in this position for one machine for PHPShell; I had to build the patched 7.4. I happen to know that the deprecations in 8.2 will bite me, but the old project is going to get a more considerable overhaul sooner than that, so that it is in more LLM-friendly patterns.
Random side note: if you are revitalising an old PHP app and intend to migrate it away from PHP to another language, one sane intermediate step you might consider is reworking it to use the Slim framework ( https://www.slimframework.com ) which uses a compact form of route closure definition that is so similar to e.g. Express, Gin, the core Golang http.Handle APIs etc. that it will be a much easier task to scrutinise when you get there. LLMs seem positively giddy about the prospect. Type hints would help, too.
What are those LLM-friendly patterns? Wouldn't upgrading the existing codebase with a LLM be easier than compiling PHP from source?
This is becoming a rapidly dangerous mindset. The cost and risk of forking and fixing an abandoned piece of code is trending to zero and the risk of being pwned when leaving an EOL library publically exposed to the internet is trending to 100%.
Even the cost and risk of completely removing an unmaintained library is also trending to zero.
LLMs have a lot more patience for enumerating test-cases, automating tests and creating staging environments and magnitudes more than sysadmins have ever had.
The case for "don't touch it don't break it" is getting increasingly indefensible.
And you have to remember that a lot of this code is just not in reproducible environments. So there's a fair chunk of setup effort involved in even getting an LLM to be able to safely work on it.
Like I say, the "left behind" tax is a serious problem with this stuff.
Most people expect community-code PHP sites to fall apart eventually, as the people that deployed the host are usually already at another company years later.
Usually the fix is to spider a site into static html content, and nuke the dynamic rotting framework part from orbit. =3
Nothing that has survived into this problem space is throw-away, or it would have been thrown away.
There's a lot of solid, boring, just-works PHP that nobody has touched because it works, that now won't run on enforced newer environments because of deprecations. And as the pace of PHP improvement sped up around 8.x, so did the pressure to leave that working code on older PHP versions.
These kinds of systems often not only rely on every possible bug, they can rely on every possible side channel as well. And they often don't have any sort of testing or staging environment where screwups are recoverable.
I have one of these apps. Good code, modular structure (but very bespoke, and much of it quite an old design pattern), has a dev environment (but that environment is also old), makes use of a few now quite old dependencies. Works really well, and as a freelancer I simply don't get the billable time to fix what "ain't broke", so it gets improvements as it gets new feature requests.
The problem is that it ain't broke, in fact. Nevertheless I fully know the IIABDFI days are gone.
I am recovering from severe burnout and untangling its dependencies, restructuring it into more modern architecture that will be more amenable to LLM management, but as with any serious legacy code there's a lot to deal with from several directions at once.
Even figuring out how to describe its architecture concisely to an LLM is a multi-phase project! It will be easier to semi-manually modernise some things so that there is less explaining to do.
As it happens, getting it to literally just run on more recent PHP will be a much easier problem.
You don't need to do this anymore. Ask the LLM* to describe its architecture to you.
*edit - a good, frontier LLM - like Astra/Sol/Opus
No staging or testing environment? Get the LLM to create one... Can't create one because of external dependencies/APIs? Get the LLM to reverse engineer you a very convincing mock of that dependency/API - each time there is an observed difference between the real and staging environment, just throw the LLM at fixing it.
The main barriers to achieving any of this is not technical. I'm sure there's places out there where none of the above is possible because those responsible for the systems don't have access to them.
The skilled operator used to be the one dude who knew how the system worked - who didn't have the time to do anything but fight fires. Now days, the skill is understanding how to get the LLM cranking in a good loop and letting it cook. You don't need 20 years of working on a system to know how it works anymore. The most important architectural decision you need to have is to have version-controlled code, infra and monitoring so that the LLM can reason about the system. I suspect many of these legacy systems do not even have source control, but the good thing is that once again, a like-for-like migration such as capturing all the details of a current system and representing it as code is another good example of a self-verifying task that LLMs are also great at.
why would you want to use a fascist automated plagiarism machine to do that when Rector can do it? this is madness
In my own project, yeah, PHPStan, Rector, anything that will help.
People who are running very old versions of PHP probably aren't deploying the patches.
At least this blog has a lot of data in it, and is well presented. So I do congratulate the author for doing a thorough job. Which is more than can be said for 99% of the other sales pitches that are written as blogs.
I am always trying to patch small things to make a site work with a newer PHP version; if it needs more time or even a big refactor/replace of plugins/theme, then I contact the clients and offer them an upgrade path with a price to pay unless they are paying for continues support.
There can be a lot of incidents on a live web server with dozens of websites; quite a few times such incidents come from old WordPress plugins with naive implementations; I always have a proper setup, isolating each website, every client with no cross-access and execution rights and I even block some dangerous PHP functions using `disable_functions` config directive.
PHP is one part of a big chain of actions and configurations that must be done right; but there are more things to do in order to keep a server less exposed to bad actors.
IMO it's not worth staying on versions so ancient, especially for WP and its community which is largely on PHP 8.
For many WP site owners, that is not worth doing and the site will become another malware host. Unless you have sone benevolent, trustworthy dev to recommend to them.
Note that just two days ago, I was scolded for suggesting that an AI agent could even perform local desktop configuration, much less a server:
https://news.ycombinator.com/item?id=50660267
If there is a server on the internet that hasn't been updated in a decades, it's currently running a bitcoin miner and serving malware.
A particularly dynamic site, yes.
A static site [generator] has always worked and continues to work.
I'm not saying it's not a problem, but probably not as big as article might make it seem to be.
What is more likely to cause problems of course is plugins or themes. We all know software is somewhat of a “hack on it until it works” but how much hacking is what separates “custom” software from off the shelf.
Also, many shared hosting providers charge an extra fee if your site is on an old PHP Version so by upgrading you might even save a few bucks a month.
Probably not, but as a good Internet citizen you should take a site that will become a malware host offline if you're not keeping it secure.