All our servers support (i.e. are capable of running) PHP 5.2 , PHP 5.3, PHP 5.4, PHP 5.5, and PHP 5.6 (with a few exceptions listed below). The default version is 5.4.x but you can follow the directions below to use other PHP versions instead.
Exceptions: Newer VPS/Plesk installations have PHP 5.6 as the default, and do not support versions less tha PHP 5.5.
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 the hosting plan you have.
Shared and Reseller
We currently have 5.4.35 (or higher) as a default PHP version on all servers. A handler for other PHP versions is added to our shared and reseller servers for those who wish to utilize it. In order to utilize this handler, you will need to add the following code to your .htaccess file to enable the respective PHP version:
# Use PHP 5.2
AddType application/x-httpd-php52 .php
Or the following for PHP 5.3:
# Use PHP 5.3
AddType application/x-httpd-php53 .php
Or the following for PHP 5.5:
# Use PHP 5.5
AddHandler application/x-httpd-php55 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php55/lib
</IfModule>
Or the following for PHP 5.6:
# Use PHP 5.6
AddHandler application/x-httpd-php56 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php56/lib
</IfModule>
Linux Dedicated Servers
Do not use the Handler code listed above. Instead, you must email support@myvhosting.com and request Apache be recompiled to use PHP 5.3.
VPS with cPanel
Do not use the Handler code listed above. Instead, you must email support@myvhosting.com and request that PHP 5.3 be installed.
VPS with Plesk
Newer VPS/Plesk installations are setup with PHP 5.3, however some older installations may have previous versions. If your VPS requires an upgrade to 5.3 please email support@myvhosting.com to request this.
Things to Keep in Mind
If you are using a custom php.ini file that references PHP modules that are not available with PHP 5.3, your site may not work. Either remove the custom php.ini file (which will cause the server to use the default php.ini file for PHP 5.3), or create a php.ini file that is compatible with PHP 5.3.