All our servers currently support (i.e. are capable of running) multiple versions of PHP.
The default version is 7.2.x but you can follow the directions below to use a different PHP version instead.
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.
Enhanced Skin:
- Login to your DirectAdmin control panel
- Click on Domain Setup, which can be found on the top left.
- 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
Evolution Skin:
- Login to your DirectAdmin control panel
- Click on Account Manager > Domain Setup
- Select the domain you wish to change the PHP settings for
- On the top right click the link to PHP Version Selector
- Select your desired PHP version and click save
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.