DirectAdmin Manual

Helping you get the most out of DirectAdmin and your web!

Select a PHP version

Older and newer servers use different PHP selectors. Before changing the version, check the requirements of WordPress, PrestaShop or another application and back up both files and the database.

Newer server — PHP per domain and subdomain

  1. Open Account Manager → Domains.
  2. Click the required domain name.
  3. Click PHP Version Selector.
  4. Select one of the versions installed on the server and click Save.
  5. Immediately test the website, administration, forms and scheduled tasks.

For subdomains, open Account Manager → Subdomain Management. The list has a separate PHP Version column; after creation, every subdomain can use a version independent of the main domain.

A newer server does not require one PHP version for the complete account. A legacy website can remain on a compatible version while a new project on another domain or subdomain uses a newer version.

Older CloudLinux server — one version for the complete account

  1. Open Extra Features in the top menu.
  2. Click an item labelled, for example, PHP 4.4 to 8.3 or PHP 5.3 to 8.3. The exact range depends on the server and installed versions.
  3. CloudLinux PHP Selector opens. Choose the required version under Current PHP Version.
  4. Under Extensions, verify required modules such as mysqli, pdo_mysql, mbstring, intl, curl, gd, imagick or zip.
  5. Options contains supported PHP settings. Change only values you understand.
  6. Test every website in the account.

On an older server the change applies to the complete hosting account. It affects all domains and subdomains owned by that user, even when only one domain is selected in the DirectAdmin header.

Safe upgrade procedure

  1. Back up files and the database.
  2. Update the application, theme and plugins to releases supporting the target PHP version.
  3. Change PHP and test the public site, administration, email sending, forms, payments and CRON.
  4. If a 500 error or blank page appears, check the error log and temporarily restore the previous version.
  5. Do not keep an unsupported version indefinitely only because the site currently works; plan an application update.

Available versions change

The PHP and extension list can change after server maintenance. Use the versions currently displayed by DirectAdmin or CloudLinux PHP Selector rather than relying on an old screenshot or menu label.

Back to chapter overviewContact Euroserver support