For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /directadmin/php_configuration/how_to_select_php_version_directadmin.md.

How to Select PHP Version in DirectAdmin

This guide shows you how to select a PHP version for your domain in DirectAdmin.

Info

If you are using the Standard theme on DirectAdmin, expand the Standard theme section below and follow those steps. To switch to the Refreshed theme, see How to change theme or layout on DirectAdmin.

Requirements

  • Access to DirectAdmin.
  • A domain added to your DirectAdmin account.
  • PHP enabled for the domain.

In the Refreshed Theme

Open Select PHP Version

Click on the Select PHP Version option under Extra Features.

Select PHP Version under Extra Features

Choose the domain

In the Domain section, scroll down to view and select the list of domains.

Domain list

Open the PHP version dropdown

Click on the PHP version dropdown button.

PHP version dropdown

Select the PHP version

Select the PHP version you want to set for your website.

Available PHP versions

Enable PHP modules (optional)

If you want to enable PHP Modules, select the modules you need. They are enabled automatically.

PHP modules

Check the PHP options (optional)

Review the PHP options.

PHP options

Adjust the variables as required.

PHP option variables

In the Standard Theme

Click here to show the steps

Open Select PHP Version

Click on the Select PHP Version option under Extra Features.

Select PHP Version under Extra Features

Choose the domain

In the Domain section, scroll down to view and select the list of domains.

Domain list

Open the PHP version dropdown

Click on the PHP version dropdown button.

PHP version dropdown

Select the PHP version

Select the PHP version you want to set for your website.

Available PHP versions

Enable PHP modules (optional)

If you want to enable PHP Modules, select the modules you need. They are enabled automatically.

PHP modules

Check the PHP options (optional)

Review the PHP options.

PHP options

Adjust the variables as required.

PHP option variables

Conclusion

You have successfully selected the PHP version and configured the required PHP options for your domain in DirectAdmin.