PHP Version Selection

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.

  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

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

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

.htaccess tutorial

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

HTML - The Basics

Part 1 Introduction HTML is the language that makes the web work. It is the usual programming...

What is Ioncube?

IonCube is a PHP loader designed to prevent unauthorized use of your PHP scripts. IonCube is...

What is PHP?

Short for PHP: Hypertext Preprocessor, an open source, server-side, HTML embedded scripting...

Connecting to MySQL through PHP

Use the following outline to connect and begin querying the MySQL server from within your PHP...