An unofficial, read-only Hacker News reader.

Elephant in the Server Room: >50% of WordPress Sites Run PHP That's EOL by Jan (opens external site)

90 points by xadz 7 hours ago | adamgreenough.net | 36 comments on HN

View full thread · View on Hacker News

Comment thread (9)

  1. > 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.

    Replies (2)
    1. 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.

      Replies (2)
      1. 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.

        Replies (2)
        1. Lucky you!
        2. > 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

      2. 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.

    2. 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.

      Replies (1)
      1. 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

        Replies (1)
        1. > 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.