Portal Home > Knowledgebase > Web Hosting > PHP Version
Multiple PHP versions are available on our web hosting servers if you need it for development.
Our servers are running PHP 5.4.x by default, with all of the common extensions you would expect to find at a web hosting provider. This is a standard Linux web hosting arrangement, suitable for all modern PHP applications such as WordPress and more.
On the outside chance you need a later version of PHP, you can switch over to PHP 5.5 or PHP 5.6 by making use of ".htaccess" files inside of any directory that you want to run one of the newer PHP versions. In this way, you can actually have multiple versions of PHP running on the same web site, on a per-directory basis.
To use PHP 5.5 in any directory, add a text file called ".htaccess" into the directory with the following 1 line inside of it (or add this 1 line to the top of any .htaccess file that may already be in a directory) --
AddType application/x-httpd-php55 php
Or to use PHP 5.6, add this to the .htaccess file:
AddType application/x-httpd-php56 php
This simple one-line setting inside of the .htaccess file is all it takes to switch the PHP version at will, in any directory. If there's no .htaccess file, then the system defaults to using PHP 5.4.
Note that some FTP applications don't display filenames starting with a period, so if you upload a .htaccess file somewhere but you don't see it in your FTP app directory listing, it's probably just a matter of needing to adjust the preferences of the FTP app so it will display files starting with a period (which may be referred to as "hidden files" in your FTP app.) Also note that the filename must be exactly ".htaccess" with no extension on it, for instance not ".htaccess.txt"
Add to Favourites Print this Article