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)

269 points by xadz 1 day ago | adamgreenough.net | 124 comments on HN

View full thread · View on Hacker News

Comment thread (9)

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

      Replies (1)
      1. It's easier than ever to upgrade old code.
        Replies (2)
        1. The cost is not zero, especially if the code hasn't been touched in a while.
        2. It may be. But with old code it’s also likely that the people who wrote it either aren’t around or won’t be paid to fix it.
    2. Or migrate the database and recreate the old app in another language
      Replies (1)
      1. Yeah — it's very clear to me that PHP itself is now an unacceptable developer burden in terms of maintenance and security for internet-facing applications.

        But then I believe this of all interpreted languages now.

        Replies (1)
        1. Except for OTP compatible languages like Elixir/Erlang, as they remain functional even when partially broken or fair-scheduling in deadlock.

          The idea of building flawless code in complex patterns is naive, as at scale the improbable becomes a certitude. The Erlang interpreters have live internal state debugging as part of the API, and is compatible with constraint programming paradigms (list comprehension feature is somewhat functionally similar.)

          Some other projects that I've found surprisingly reliable over the years. =3

          https://www.rabbitmq.com/

          https://www.phoenixframework.org/

          Replies (1)
          1. > Except for OTP compatible languages like Elixir/Erlang, as they remain functional even when partially broken or fair-scheduling in deadlock.

            Yes, though it's not the brokenness that concerns me about interpreted languages, but the interpreter attack surface (and the fact that without care, a supply chain attack can put code on your server that you never run and would only be useful to an attacker). Also that your job each time there's a security issue is to update all these packages and the interpreter, not just your app.

            For example, the PHP2shell stuff was absolutely nothing to do with anyone's code; that is what made it so exhausting. No amount of good practice in a code context can save you when the interpreter's interface to the webserver is the target of the attacks.

            It's not the only reason I am giving up on clever interpreted languages; smaller open weights LLM performance is another. But it is one.

            My modestly-sized deskbound clanker sidekick and I are having fun writing a Swift app at the moment, and it seems highly capable of it. But it likes Golang a lot more. It's more metallic and beepy-boopy, I think. Elixir does seem to be a potential candidate too. Been a while since I looked, but I liked it as a human.