All our servers support (i.e. are capable of running) PHP 5.3 and PHP 5.4. The default version is 5.4.x but you can follow the directions below to use PHP 5.3.X instead. PHP 5.2.x has been phased out from our servers as it is no longer supported by its developers. We are currently working on phasing out PHP 5.3.x and making available PHP 5.5.x
Before switching, be aware of backwards compatibility issues with scripts: Older PHP coding may not be compatible with newer versions of PHP.
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
Note that the httpd.conf rewrite requires an apache restart, which may take up to 30 seconds
The php version selector does not make use of .htaccess files to make the changes, so there is no need to create or edit your .htaccess files