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.
- Login to your DirectAdmin control panel
- Click on Domain Setup, which can be found on the top left when using the standard ENHANCED skin
- Select the domain you wish to change the PHP settings for
- On the bottom of the next screen, under the header "PHP Version Selector" Set your desired PHP version on the First PHP pulldown
- 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.