Website PHP: A Security and Upgrade Guide

Table of Contents
    Add a header to begin generating the table of contents
    Website PHP Security: Check Support and Plan an Upgrade
    Send to AI

    Choose an AI service. ChatGPT and Perplexity submit the summary request, Grok opens it ready to send, and other services open with the request copied as a fallback. If an AI cannot open the page, copy the article text and paste it into the chat.

    The use of an unsupported version of PHP would make a website vulnerable to exploits that are no longer patched by the developers of PHP. So you should determine what version of PHP you have installed and ensure that it is supported. If not plan an upgrade for it along with other website maintenance procedures, since advances in AI make PHP security a must in the modern age.

    In this article we will cover what PHP is, current support, finding your PHP version and how to upgrade.

    What PHP does and why support matters

    PHP is server-side software used by WordPress and many other websites. It helps run the application that produces pages and handles requests. The version running on your hosting account is separate from the WordPress version, theme and plugins. Yet some will have PHP requirements to run in the first place.

    A working website is not proof that its underlying software is supported. End of life means the PHP project no longer supports that branch; it does not mean every site using it is already compromised. Any extended support offered by a hosting vendor needs to be assessed separately. However in a world with AI coding agents used by hackers, malicious attacks are rising fast, so up to date software is your first line of defense and should be a priority.

    PHP support status in October 2026

    The PHP project lists these supported branches as of this review:

    • PHP 8.2: security fixes only, until 31 December 2026.
    • PHP 8.3: security fixes only, until 31 December 2027.
    • PHP 8.4: active support until 31 December 2026; security support until 31 December 2028.
    • PHP 8.5: active support until 31 December 2027; security support until 31 December 2029.
    • PHP 8.1 reached end of life on 31 December 2025. PHP 7.x and 5.x are also unsupported by the PHP project. Do not use an old recommendation to “upgrade to PHP 7” as current advice.

    Select one of the currently-supported and stable branches that you and your extensions are compatible with, along with adequate support period left to plan the migration. Please recheck the official lifecycle webpage before proceeding. The release candidate is only used for testing and not the default choice for upgrading production.

    Find the version your website actually runs

    In WordPress, find the server info through Site Health (Tools -> Site Health) in the dashbaord or use a plugin like Easy PHP settings, otherwise go to the control panel of the hosting service and make the hosting service confirm what version is in use for the live site be that in plesk or cpanel. Settings can differ across accounts and per-site settings, and the command line version can be different from the one servicing the web request, so be cautious.

    Note down the PHP branch in use, the installed version, the hosting service as well as the individual responsible for updating. Find out who provides the patches as well as how you will be notified of deadlines for support. Do not leave an exposed configuration information page open to the public after checking the setup.

    As of now, the suggested PHP version for WordPress is 8.3 and above. It doesn’t necessarily mean all themes, plugins, and integrations on your particular WordPress site are supported by that branch.

    Plan a tested upgrade instead of changing the live setting blindly

    1. Inventory the application, plugins, theme, custom code, and integrations. Verify their compatibility and identify abandoned items.
    2. Backup all files and the database, and verify how restoration will occur.
    3. Test the target PHP version in a secure staging environment. Exclude staging from search indexing, and avoid any accidental processing of live payment requests or live customer interactions.
    4. Exercise the key workflows: login, form processing, bookings, checkout, payments, scheduled tasks, and third-party connections.
    5. Fix issues and determine the date of change, who will be responsible, and the rollback plan.
    6. Following the change in production, test the workflows again, and monitor errors and customer complaints.

    For a very old application, the process could require multiple compatibility changes as opposed to a single control-panel switch. A rollback can recover the system after an upgrade failure, but reverting to an unsupported version doesn’t solve the issue of ongoing maintenance. Request documentation regarding what was tested, the version installed, and any issues that remain open. The cost is determined by the hosting configuration and the code in use; there is no one-size-fits-all upgrade fee.

    Keep the rest of the website maintained

    The PHP installation is just one piece of the puzzle. Security advice for WordPress focuses on risk management and includes use of trusted software vendors, controlled access, updates, backups and monitoring.

    Decide who is responsible for maintenance of both the application and server components, who has access to the accounts, how backup will be protected and recovered. Deregister any unused software after verifying dependencies. Security plugins, HTTPS or an updated PHP installation alone does not secure your entire website.

    Our guide to choosing a WordPress SEO plugin can help evaluate one part of the software stack. Keep plugin selection separate from the broader maintenance responsibility: SEO features do not replace security updates or recovery planning.

    Treat signs of compromise as a separate incident

    Unexpected redirections, unknown admin accounts, altered files, or unusual behavior in payments should be investigated. Immediately contact your web hosting service and get a competent reply. Gather necessary log files and determine the extent of the situation before thinking that an update has fixed everything.

    Security Issues report from Google can detect some issues, including misleading information on an infected website. No problem with a Security Issues report doesn’t mean you are safe. When Google has pointed out an issue, follow the correct procedure after the problem is solved.

    Protect the customer journey as well as the technology

    Check that the update has not interrupted important pages, forms or checkout. Our explanation of PageSpeed covers another part of website quality, but a faster site and a secure site are different assessments. Review both without treating one score as proof of the other.

    TBS’s website maintenance service can help organise ongoing upkeep and testing. Technical SEO support is relevant when an upgrade affects crawling, indexing or page delivery. If legacy code needs more substantial changes, discuss the scope through TBS’s web design service and agree the required technical work.

    Checklist for securing your website: upgrade PHP, update your site, upgrade your libraries and never delay updates

    Start by confirming your live PHP version and its support deadline. Then put a named owner, a tested change plan and a review date against the work. A repeatable maintenance process is more useful than waiting for another alarming deadline.

    Share this article

    Sign in to share. Facebook and LinkedIn need the article page to be publicly accessible to show its preview. If an AI cannot open the page, copy the article text from the section above.

    TBS Marketing Services

    Ready to put these ideas to work?

    Connect your next marketing idea with the right strategy, creative and channels. Our Bangkok team helps businesses turn attention into enquiries and opportunities for growth.

    Discuss your marketing goals

    Ohm

    Narawith K. is a Web Developer at TBS Marketing in Bangkok. Narawith writes about WordPress, responsive websites, hosting and maintenance, translating technical choices into their effects on a business website. Articles explain common development problems, the questions to ask before a redesign or migration, and what a website needs to remain usable and manageable after launch.
    Scroll to Top