PHP Version Selection


All our servers currently support (i.e. are capable of running) PHP 5.6 and PHP 7.2. The default version is 7.2.x but you can follow the directions below to use PHP 5.6.X instead. PHP 5.6.x  will be phased out from our servers as it is no longer supported by its developers.

Before switching, be aware of backwards compatibility issues with scripts: Older PHP coding may not be compatible with newer versions of PHP or vice versa.


How to Enable

Follow the directions below for any shared or reseller hosting plan you have.

  1. Login to your DirectAdmin control panel
  2. Click on Domain Setup, which can be found on the top left when using the standard ENHANCED skin
  3. Select the domain you wish to change the PHP settings for
  4. On the bottom of the next screen, under the header "PHP Version Selector" Set your desired PHP version on the First PHP pulldown
  5. Click the Save button

Please note that a PHP version change requires a restart of the webserver. This process is automatic but may take up to 30 seconds to complete.

The php version selector does not make use of .htaccess files, so there is no need to create or edit your .htaccess files to enable PHP version selection.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles


This document provides information about subdomains. Topics include creating subdomains, removing...

How Do I Create an autoresponder?

Autoresponders Autoresponders are e-mail robots that reply to all incoming messages with a...

How to make a backup of your website

This section covers choosing what to save, creating backups, storing backups, and restoring your...

Install and generate a Private Key for SSL Certificates with DirectAdmin

This section covers: Certificate installation requirements How to use the server's shared...

.htaccess tutorial

  Part 1 - Introduction In this guide you will find out about the .htaccess file and the power...