How to switch PHP versions & enable extensions in DirectAdmin Print

  • 0

Overview

Your hosting includes multiple PHP versions (7.4–8.3). You can switch PHP versions and enable required extensions directly from DirectAdmin using the PHP Selector.

Step 1 — Open PHP Settings

  1. Log in to DirectAdmin
  2. Go to Account Manager → Select PHP Version
    or PHP Settings (depending on theme)

Step 2 — Choose your domain

Select the domain you want to modify.

Step 3 — Switch PHP version

Select the version you want:

  • PHP 8.3 — recommended
  • PHP 8.2 — stable for all CMS
  • PHP 8.1 — compatibility mode
  • PHP 7.4 — legacy only

Step 4 — Enable required extensions

Common extensions:

  • mysqli
  • curl
  • json
  • zip
  • mbstring
  • xml
  • gd
  • intl

Toggle the extensions you need and click Save.

Troubleshooting

  • White screen → enable display_errors temporarily
  • 500 error → disable incompatible PHP extensions
  • WordPress broken → switch to PHP 8.1 or 8.2

Was this answer helpful?

« Back