Unofficial Hacker News companion — get notified on comment replies, and more.

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

285 points by xadz 3 days ago | adamgreenough.net | 133 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (16)

  1. Looks like Rocky 8 can still get you PHP 7.4 updates. And paid RHEL 7 can deliver PHP 5.4 until 2029.

    IMO it's not worth staying on versions so ancient, especially for WP and its community which is largely on PHP 8.

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

      https://news.ycombinator.com/item?id=50660267

      Replies (1)
      1. 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.
        Replies (4)
        1. > The model of contracting a dev to set up a website and then leaving it alone is long dead.

          A particularly dynamic site, yes.

          A static site [generator] has always worked and continues to work.

          Replies (1)
          1. 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.
            Replies (1)
            1. 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.
        2. Some may have set up the site themselves before moving on with their life.
        3.   > 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.
          Replies (1)
          1. 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.

        4. For my own security I assume any site still using wordpress is already hacked and serving malware.

          Wordpress self hosted model is a relic from another age, where plugins and dependencies weren't constantly being pounded with attacks.

          Small businesses should encouraged to migrate to a managed solution like, Substack, Squarespace, Shopify or Patreon.

    2. Wow. PHP 5.4. Might as well be safe again by 2029.
      Replies (1)
      1. You are not wrong. We have a server still running php 4 which missed the AI patch boat
        Replies (3)
        1. Maybe there is a market for selling a PHP 4 compatible interpreter again.
        2. I bet there is already someone pathed old PHP 4 code and built binaries, but you can even do it using AI agents if there is budget to spend.
        3. PHP4 was about the last version of it I used.

          I suspect it's probably pretty safe these days, there is no-one old enough to remember how to exploit it left.

    3. For sure, those patched versions can help buy some time, thogh even a perfectly patched 7.4 doesn't help with plugins.

      WooCommerce 11.6 needs PHP 8.1 from February, and Contact Form 7 already needs 8.3. WordPress won't update a plugin if the PHP is too old, so those sites just stay on the old plugin version. More plugins will do the same, and then the plugin is the part that stops getting security fixes.

      The lagging PHP support that hosts enable is becoming increasingly risky (and annoying for developers who want to make the most of new features!). Most WordPress exploits come through plugins, not PHP.