How to Change PHP Version in DirectAdmin

Learn how to change php version directadmin per domain, check WordPress compatibility, verify the switch, and roll back safely if needed today.
, How to Change PHP Version in DirectAdmin

If you need to change php version directadmin, you can usually do it for one domain from the user panel without changing the PHP version for every website on the account. This guide covers the safe order: check compatibility, select the version, test WordPress, and return to the previous version if anything behaves unexpectedly.

Why the PHP version matters

PHP is the language that runs WordPress core, themes and plugins on your hosting account. A supported version can bring security fixes and compatibility improvements, while an old version may trigger update notices or stop receiving security support.

WordPress.org currently recommends PHP 8.3 or greater for new installations. PHP itself has separate active-support and security-support periods, so the newest number is not automatically the right choice for every old plugin or theme. Read the current PHP support table before choosing a version.

Changing the version is a per-domain setting when your hosting account exposes DirectAdmin’s PHP selector. It does not update WordPress, plugins or themes for you. Treat the switch as a compatibility change and test the website immediately afterwards.

What you need before starting

You need these items before opening DirectAdmin:

  1. Your DirectAdmin login details and the domain you want to change.
  2. Access to the WordPress administrator dashboard, if the domain runs WordPress.
  3. A recent backup or a usable copy made with the self-service backup tools provided by your hosting plan.
  4. A short list of your active plugins, theme and any custom PHP code.
  5. Five to ten minutes to open the homepage, log in, submit a form and test your important pages.

First update WordPress, your active theme and plugins if updates are available. Then check the release notes for PHP requirements. If a plugin or theme explicitly supports only an older branch, do not switch blindly; contact its developer or test the change on a non-production copy first.

Step 1: Check the current PHP version

Knowing the starting version gives you a comparison point after the change and makes rollback easier.

  1. Log in to WordPress as an administrator.
  2. Open Tools → Site Health.
  3. Select the Info tab, expand Server, and find PHP version.
  4. Note the version somewhere safe, along with the date and the domain you are changing.

If you cannot access WordPress, you can still record the version shown in DirectAdmin before saving a new selection. Do not confuse the PHP version shown for the hosting account with the version used by a different domain or subdomain.

Success looks like this: you have written down a version such as 8.2, 8.3, 8.4 or 8.5 and know which website it belongs to.

Step 2: Open your DirectAdmin account

The PHP selector is available from the user-level panel, so begin with your normal hosting login rather than an administrator or reseller area.

  1. Open the DirectAdmin login page at panel.hostkarle.in.
  2. Enter your hosting username and password, then select Sign in.
  3. Confirm that the dashboard shows your hosting account and domain list.
, How to Change PHP Version in DirectAdmin
DirectAdmin login page: sign in with your hosting account before opening the domain settings.

If you have several hosting accounts, select the account that contains the domain you want to update. A PHP setting saved in the wrong account will not change the website you are testing.

Success looks like this: you are inside the DirectAdmin user dashboard and can see the account-management or domain-management options.

Step 3: Open Domain Setup and the PHP selector

DirectAdmin places the per-domain PHP choice inside the domain’s settings rather than in WordPress.

  1. In the DirectAdmin dashboard, open Account Manager → Domain Setup. Some DirectAdmin themes label this area Domain Setup directly.
  2. Select the domain you want to change.
  3. Look for PHP Version Selector or a similarly named PHP version option.
  4. Read the currently selected version before opening the dropdown.

DirectAdmin’s documentation says that users select the version from the domain setup page when multiple PHP versions are installed on the server. The options visible to you depend on what your hosting provider has enabled; you cannot add a new server PHP version from a shared hosting account yourself. See the DirectAdmin multiple PHP versions documentation for how the selector works at the server level.

If the selector is not visible, use DirectAdmin’s search box and search for PHP. If it still does not appear, the account may have only one available PHP version, or the selector may be disabled for that account. Ask your hosting provider which versions are available instead of changing server files or running administrator commands.

Success looks like this: the selected domain has a PHP version dropdown or a button that opens its PHP settings.

Step 4: Select and save the new PHP version

Choose a supported version that your WordPress site and its extensions can handle, then apply it to the selected domain.

  1. Open the PHP version dropdown.
  2. Choose the target version. For a current WordPress site, start with the newest stable version shown that is supported by your active plugins and theme.
  3. Leave unrelated PHP options unchanged unless you have a specific requirement documented by your application.
  4. Select Save, Set as current, Apply, or the equivalent button in your DirectAdmin theme.
  5. Wait for the confirmation message before closing the page.

Do not select an early-release or development build for a production website. Also avoid changing several settings at once: if the website fails, one change at a time makes the cause much easier to identify.

Success looks like this: DirectAdmin confirms the new version, and the selector shows it as current for the chosen domain.

Step 5: Test the website after switching

The selector changing successfully only proves that DirectAdmin accepted the setting; a real website test confirms that WordPress and its extensions still work.

Open the site in a private browser window and check:

  1. The homepage and at least one internal page.
  2. The WordPress login page and administrator dashboard.
  3. The main contact, enquiry or checkout form, if the site has one.
  4. A page that uses your active theme’s important features.
  5. Images, menus, search, comments or other functions your visitors use regularly.

Then return to Tools → Site Health → Info → Server in WordPress and confirm that the PHP version matches the version you selected. Clear any page or application cache only if the old page is still being served; do not treat a cached page as proof that the switch failed.

Look for a blank page, a PHP warning, a plugin error, a broken layout or a failed form submission. If WordPress reports a critical error, follow this WordPress critical-error troubleshooting guide after recording what changed.

Success looks like this: the reported PHP version is the new version, the important pages load, and the site’s key action completes normally.

Step 6: Roll back if something breaks

Rolling back isolates a compatibility problem and restores the last known working PHP version while you investigate.

  1. Return to Account Manager → Domain Setup in DirectAdmin.
  2. Open the same domain and its PHP Version Selector.
  3. Choose the version you recorded in Step 1.
  4. Select Save, Set as current or Apply.
  5. Wait for confirmation, then test the homepage and WordPress dashboard again.

If the site works after rollback, the PHP change is a strong clue, but it does not identify the exact plugin or theme by itself. Update the affected software, check its documented PHP requirements, and test the newer version again only after you have a recovery plan.

If you cannot reach WordPress but DirectAdmin still opens, the rollback can normally be done from the panel. If DirectAdmin does not show the old version, the hosting account may no longer offer it; contact HostKarle support with the domain, the old version, the new version and the exact error message.

Success looks like this: the domain runs on the previous version and the original error is gone or clearly narrowed to one plugin, theme or custom script.

Recommended PHP version for WordPress

The best PHP version is the newest stable version that your whole site supports, not necessarily the newest option in the dropdown. WordPress.org recommends PHP 8.3 or greater, while PHP’s official support page lists the support window for each branch. As of October 2026, PHP 8.5 is the newest supported branch listed there, but your provider may expose a different set of versions.

Use this decision table:

Your situationSensible choice
New WordPress site with current plugins and themeThe newest stable version available that all extensions support
Existing site with several pluginsCheck each plugin and theme requirement, then move up one supported branch and test
Site using custom or old PHP codeTest compatibility first and keep the previous working version available
Site currently using an end-of-life branchPlan an upgrade soon; first update plugins, theme and WordPress, then test the PHP change

Do not promise yourself that changing PHP will automatically make a site faster. It can improve compatibility and support status, but page speed also depends on the theme, plugins, images, database and caching configuration.

For WordPress-specific hosting requirements, refer to the official WordPress requirements. If you are setting up a new site, HostKarle’s WordPress hosting plans include a per-site PHP version selector through DirectAdmin.

Troubleshooting common problems

The PHP Version Selector is missing

Confirm that you are in the user-level DirectAdmin account and that you opened the specific domain under Domain Setup. The selector requires multiple PHP versions to be installed and enabled by the server administrator. On shared hosting, ask your provider to confirm the available versions rather than attempting server-level commands.

The version changed but WordPress still reports the old one

Recheck the domain selected in DirectAdmin and the exact URL you tested. A subdomain can have its own setting, and a cached response can make a page look unchanged. Check Tools → Site Health → Info → Server again in a fresh private window.

The site shows a critical error after the change

Roll back to the version recorded before the switch, then test again. Once the site is stable, update WordPress, the theme and plugins, inspect their PHP requirements, and retry one change at a time.

Only an older PHP version is available

Do not install PHP yourself on shared hosting. Ask your provider which supported versions are available for the account and whether the domain can be moved to one of them. WordPress may continue to run on older versions, but the official requirements page warns that legacy PHP versions have reached end of life.

A subdomain behaves differently from the main domain

Check the subdomain’s own setting in DirectAdmin. DirectAdmin supports assigning a PHP version to a subdomain through its subdomain setup and document-root options when the server is configured for it.

FAQ

Can I change PHP version for one domain in DirectAdmin?

Yes, when your hosting provider has enabled multiple PHP versions and the selector. Open Account Manager → Domain Setup, choose the domain, open PHP Version Selector, select the version and save it. Other domains can keep their own settings.

Does changing PHP version update WordPress?

No. The DirectAdmin setting changes the PHP runtime used by the domain; it does not update WordPress, themes or plugins. Update those components separately and test the website after changing PHP.

What PHP version should I use for WordPress?

Use the newest stable version available that your WordPress core, theme and plugins support. WordPress.org currently recommends PHP 8.3 or greater, but an older site may need compatibility checks before moving to a newer branch.

How do I check which PHP version my WordPress site uses?

In WordPress, open Tools → Site Health → Info → Server and read PHP version. You can compare it with the version shown for the domain in DirectAdmin.

Can I undo a PHP version change in DirectAdmin?

Yes. Open the same domain’s PHP selector, choose the previous working version and save it again. Test the homepage and administrator dashboard immediately after the rollback.

Want to partner with us, suggest a resource or advertise on this blog? Email partnerships@hostkarle.in

Samrat Ghosh
Written by

Samrat Ghosh

Writer

Samrat Ghosh writes hands-on guides about web hosting, WordPress, domains and email for Indian small businesses, students and freelancers - the practical documentation he wishes had existed when he set up his first website.

Previous Article

Website Maintenance Cost in India: What to Budget

Next Article

InMotion Hosting Alternatives for Indian Website Owners

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website is using cookies to improve the user-friendliness. You agree by using the website further.

Privacy policy