Choosing the right PHP version for WordPress

Which PHP version WordPress runs best on, how to check plugin compatibility, and how to switch PHP versions on Traxio without breaking the site.

Guide2 min readLast updated
On this page
  1. Check what you’re running
  2. Before switching
  3. Switch
  4. Test after switching
  5. If something breaks
  6. If it doesn’t work

Newer PHP versions are faster and receive security fixes; old ones don’t. WordPress runs on the current PHP versions Traxio offers — PHP 7.4, 8.0, 8.1, 8.2, 8.3 and 8.4.

Check what you’re running

In WordPress, Tools → Site Health → Info → Server shows the PHP version. Site Health → Status warns if it’s outdated.

Before switching

  1. Update WordPress, themes and plugins first. Old plugin versions are the usual cause of incompatibility.
  2. Take a backup. How to back up WordPress
  3. Ideally, test on a staging copy. Using a subdomain as a staging site

Switch

Change the domain’s PHP version in DirectAdmin. How to change the PHP version in DirectAdmin

Move one version at a time if you’re far behind — say 7.4 to 8.1, test, then 8.3.

Test after switching

  • Load the home page and a few inner pages
  • Log in to admin
  • Submit a contact form
  • Complete a test checkout on shops

If something breaks

Switch back to the previous version immediately — it takes effect straight away — then find the culprit in the error log. How to find PHP errors (error logs and display_errors) Usually one plugin or theme needs updating or replacing.

Prefer to follow along?

Everything in this guide works on Traxio’s WordPress hosting: £0.99 a month.

If it doesn’t work

These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going