How can we help?
Table of Contents
< All Topics
Print

PHP Versions

The default version of PHP is currently 7.3 but we also offer the following additional PHP versions:

PHP Versions available

PHP Version: Htaccess Code: CLI Executable:
5.3 AddType application/x-httpd-php53 .php /usr/local/php53/bin/php
5.6 AddType application/x-httpd-php56 .php /usr/local/php56/bin/php
7.0 AddType application/x-httpd-php70 .php /usr/local/php70/bin/php
7.1 AddType application/x-httpd-php71 .php /usr/local/php71/bin/php
7.2 AddType application/x-httpd-php72 .php /usr/local/php72/bin/php
7.3 AddType application/x-httpd-php73 .php /usr/local/php73/bin/php
7.4 AddType application/x-httpd-php74 .php /usr/local/php74/bin/php
8.0 AddType application/x-httpd-php80 .php /usr/local/php80/bin/php

Changing PHP Version via .htaccess

To switch a site or account over to a different PHP version, place the following line of code inside a .htaccess file.

In this example we switch to PHP 5.6, but please replace the command with one above if you require a different version:

    AddType application/x-httpd-php56 .php

If you are unsure about how to create a new .htaccess file or modify an existing file, please contact Support who will be happy to make the PHP switch for you.

PHP-CLI

The PHP CLI executable is used for command line scripts and running scripts from Cron if you require a different PHP version to the default version.

Categories