How to change the PHP version in DirectAdmin

Switch a domain or subdomain to a different PHP version in DirectAdmin, test the result and roll back instantly if something breaks.

How-to guideBeginner2 min readUpdated

Each domain on your account can run its own PHP version. Available versions: PHP 7.4, 8.0, 8.1, 8.2 and 8.3.

Before you switch

Steps

  1. Open Account Manager then Domain Setup.
  2. Select the domain (or subdomain) you want to change.
  3. Find the PHP version setting for that domain.
  4. Choose the version and save.

The change applies within moments. Visit the site in a private window and test the important pages.

Confirm it took effect

Check with a PHP info file or WordPress Site Health. How to check which PHP version your site is using

If the site breaks

Switch back to the previous version — it’s immediate — then look at the error log to find which part of the site isn’t compatible. How to find PHP errors (error logs and display_errors)

Subdomains

Subdomains can use a different version from the main domain, which is useful for testing an upgrade on a staging copy first. Using a subdomain as a staging site

Note: If you don’t see a PHP version option on the domain’s page, search for “PHP” in the DirectAdmin search box.

Not with Traxio yet? You can try this on a real server with our free PHP hosting trial: 30 days free with no card, then £0.99 a month.

Popular

Tip: press / to search from any pageSee all results