Free migration. 30-day money-back guarantee.See plans

Skip to content
ProWebHostingPROWBHOSTING

DirectAdmin tutorials

How to Change the PHP Version in DirectAdmin (and Why It Matters)

By ProWebHosting team. Published 13 September 2026. 8 min read.

To change the PHP version in DirectAdmin, open Account Manager, click Domain Setup, click your domain, and pick the version in the PHP Version Selector, then save. The change applies to that domain within seconds. Stay on a PHP branch that still receives security fixes, check your WordPress plugins for compatibility first, and switch back the same way if anything breaks.

PHP is the language WordPress, Laravel and most other web applications run on, and the version your site uses affects speed, security and whether your plugins work at all. Every ProWebHosting plan includes a PHP version selector, so you are never stuck on whatever the server default happens to be. This guide shows where the setting lives in DirectAdmin, how to switch safely and what to do when a plugin breaks.

Why the PHP version matters

Each PHP release gets about two years of active support, during which bugs are fixed, followed by a further period of security fixes only. After that the branch is unsupported: a newly discovered vulnerability is never patched. Running a site on an unsupported PHP version is the software equivalent of leaving a window open.

Newer versions are also faster. PHP 8 introduced a just-in-time compiler and a long list of internal optimisations, and each 8.x release has continued to trim execution time. On shared hosting, where your account has a fixed CPU share, a faster PHP means the same visitors use less of that share and pages return sooner. For the current dates, check the official PHP supported versions page. As of September 2026 the position is:

PHP support status in September 2026
PHP branchStatusSecurity fixes untilRecommendation
8.1 and olderEnd of lifeAlready endedMove off as soon as your plugins allow
8.2Security fixes only31 December 2026Plan an upgrade this year
8.3Security fixes only31 December 2027Fine for now, upgrade within the year
8.4Active support31 December 2028A good choice for most WordPress sites
8.5Active support31 December 2029Newest; confirm plugin support first
PHP versions and their support status in 2026A ladder of PHP versions from 7.4 to 8.5. Versions 7.4, 8.0 and 8.1 are end of life, 8.2 and 8.3 receive security fixes only, 8.4 and 8.5 are actively supported. Sites should run a supported version.Which PHP version should your site run? (status as of 2026)PHP 7.4End of lifePHP 8.0End of lifePHP 8.1End of lifePHP 8.2Security fixes onlyPHP 8.3Security fixes onlyPHP 8.4Actively supportedPHP 8.5Actively supportedCheck php.net/supported-versions before switching. Newer PHP is also noticeably faster for WordPress.
Each PHP branch moves from active support to security-only support to end of life. Stay on the top rungs.

Where the PHP version is set in DirectAdmin

DirectAdmin sets the PHP version per domain, not per account. That is useful: an old client site that needs PHP 8.1 for one more month can sit next to a new site on 8.4 in the same hosting account. The setting lives on the Domain Setup page.

Change the PHP version for a domain

  1. 1

    Open Domain Setup

    Log in to DirectAdmin. Under Account Manager, click Domain Setup. You will see every domain on the account.

  2. 2

    Click the domain you want to change

    The domain settings page opens. Scroll to the PHP Version Selector section. It shows the versions installed on the server, with the one currently in use selected.

  3. 3

    Pick the new version and save

    Choose the version, then click Save. The web server picks up the change within a few seconds. There is no restart and no downtime for your other domains.

  4. 4

    Confirm it took effect

    In WordPress, go to Tools, then Site Health, then the Info tab, and expand Server to see the running PHP version. On any other site, a one-line file containing <?php phpinfo(); uploaded to public_html will show it. Delete that file afterwards.

Subdomains can run a different version from their parent domain. Under Account Manager, open Subdomain Management, find the subdomain, and use the Document Root Override settings, which include their own PHP Version Selector. This is handy for a staging copy at staging.yourdomain.com that you want to test on a newer PHP before moving the live site.

Depending on how the server is configured, you may also see a PHP Settings page in your account. It lists the version and lets you adjust common values such as memory_limit, upload_max_filesize, post_max_size, max_execution_time and max_file_uploads without editing php.ini by hand. On servers that use the CloudLinux selector, the equivalent tool appears under Advanced Features as Select PHP Version and additionally lets you toggle individual PHP extensions. If you do not see one of these pages, the Domain Setup selector is the one to use, and support can adjust limits for you.

Test before you switch the live site

Switching PHP takes ten seconds, and switching back takes the same ten seconds, so the risk is short-lived. Still, a store or a busy site deserves a few checks beforehand so the switch happens on your terms rather than at 2 AM after a customer complains.

  1. Take a backup. Use Create/Restore Backups under System Info & Files, or at least export the database, so you can roll back if a plugin corrupts something during an update.
  2. Read Site Health. WordPress flags an outdated PHP version and, after the switch, reports any fatal errors it caught.
  3. Check each plugin and theme. On its wordpress.org page, look at Requires PHP and Tested up to, and the date of the last update. A plugin untouched for three years is the likely one to break.
  4. Update everything first. Plugin and theme authors usually ship PHP compatibility fixes in ordinary updates, so being current removes most problems before they start.
  5. If you can, test on a staging subdomain running the new version before touching the live domain.
  6. Switch during a quiet hour, then click through the home page, a post, the contact form, the checkout if you have one, and the WordPress admin.

Common WordPress plugin problems after a PHP upgrade

Most sites move from PHP 8.2 or 8.3 to 8.4 without any visible change. When something does go wrong, it is nearly always an old plugin or theme using a function that PHP removed or tightened. The symptoms are recognisable once you have seen them.

Symptoms after switching PHP and what usually causes them
What you seeLikely causeWhat to do
White screen or "There has been a critical error on this website"A plugin or theme calls a function removed in PHP 8, such as create_function or eachCheck debug.log for the plugin name, update it, or replace it
Uncaught TypeError or ArgumentCountErrorPHP 8 enforces argument types more strictly than PHP 7 didUpdate the plugin; if it is abandoned, find a maintained alternative
Deprecated notices at the top of pagesOlder code using features scheduled for removal, such as dynamic properties in PHP 8.2Harmless for now; hide with WP_DEBUG_DISPLAY false and update the plugin when a fix ships
Contact form or payment gateway stops workingAn outdated library bundled inside the pluginUpdate the plugin, then re-test the form and a test payment
Site slower after the changeOpcode cache warming up, or a caching plugin cleared its storeWait a few minutes and reload; clear the cache plugin once

If the admin area itself is unreachable, you can disable the offending plugin without logging in. Open File Manager, go to public_html/wp-content/plugins, and rename the plugin folder. WordPress deactivates it on the next load. Alternatively switch the PHP version back in Domain Setup, fix the plugin, and switch forward again.

Really old code, such as a custom theme from 2015 that still uses the mysql_ functions removed in PHP 7, will not run on any supported version. The honest options are a rewrite of that piece or a new theme. Keeping the whole site on an unsupported PHP version to preserve one old function is not a good trade.

Which version should you choose?

For a WordPress site with current plugins, choose 8.4. It is in active support, it is fast, and the WordPress core and the major plugins have supported it for some time. Move to 8.5 once the plugins you depend on state support for it. Only stay on 8.2 or 8.3 if a specific plugin forces you to, and note the end-of-support date in your calendar.

For a custom PHP application, follow your framework. Laravel, for example, publishes a minimum PHP version for each release. Match it, and use the per-domain selector so different projects on the same account can sit on different versions. Our DirectAdmin hosting page lists what is included on every plan, and if you need a specific extension enabled, ask support rather than working around it.

Need hosting that just works?

Want us to check your plugins and switch your site to a supported PHP version for you? Message us on WhatsApp with your domain.

Frequently asked questions

Where is the PHP version selector in DirectAdmin?

Under Account Manager, open Domain Setup, click the domain, and use the PHP Version Selector on that page. Some servers also show a PHP Settings page or a Select PHP Version tool under Advanced Features for adjusting limits and extensions.

Which PHP version should I use for WordPress in 2026?

PHP 8.4 is a sound choice: it is in active support until the end of 2026 and receives security fixes until the end of 2028, and current WordPress releases and major plugins support it. Use 8.5 once your plugins confirm support.

Will changing the PHP version cause downtime?

No. The change applies to the selected domain within seconds and does not affect other domains on the account. If a plugin breaks, switching back takes the same few seconds.

Can different domains on my account use different PHP versions?

Yes. DirectAdmin sets the PHP version per domain in Domain Setup, and subdomains can be given their own version through Document Root Override in Subdomain Management.

My site shows a critical error after switching PHP. How do I fix it?

Switch back to the previous version in Domain Setup to restore the site, then check wp-content/debug.log or rename plugin folders in File Manager one at a time to find the plugin at fault. Update or replace it, then switch forward again.

Related guides

Ready to host your website in Pakistan?

Message us on WhatsApp with your domain name and what you are building. We reply during office hours with a plan recommendation and payment details for JazzCash, Easypaisa or bank transfer.

Monday to Friday, 9:00 AM to 5:00 PM (PKT). Emergency support is available 24/7/365 for hosting outages.