What Version of PHP Are You Using?

We are running PHP 5 on all of our servers. The default version of PHP on your server depends on your hosting type. Please see the chart below for a breakdown of versions and availability by hosting type. If you would like to use a specific version of PHP, please see our articles on enabling PHP 5.3PHP 5.4 and PHP 5.5 for details.

Please note: Secondary installs of PHP — any installation of PHP that is outside what is managed via cPanel — are free.

What Version of PHP am I Using?

With a variety of available PHP versions it can be difficult to identify which version your site is taking advantage of. This can be even more challenging to determine given that PHP versions are defined in the .htaccess file, meaning that subfolders can inherit the versions their parent directories are using.

The easiest way to be certain what version of PHP a folder is using is to create a phpinfo.php file in that directory and navigate to it. The top of the phpinfo page will tell you what version of PHP is being referenced by that directory.

The following article will provide instructions for how to create and visit a phpinfo.php file:

How Do I Change My PHP Version?

HostGator provides a PHP Configuration plugin on our Shared and Reseller server cPanels that allows setting the PHP version for specific directories and domains. Please see the following link for information on using this plugin:

Note: Customers on a VPS or Dedicated server will only have one version of PHP installed by default. To use alternate versions of PHP, please contact us to Support with your request.

What Versions of PHP are Available?

We are currently working to make all PHP versions available to customers and highly recommend using the most up-to-date version that is compatible with your scripts.

PHP 5.2 is deprecated software and is no longer being updated by the PHP development team. As such, we recommend that you prepare your scripts for PHP 5.3, 5.4 or 5.5.

Key:

Yes
Default
This version is what is used unless you specify otherwise. Yes
.htaccess
You can use this version with a small change to the .htaccess file.
Ticket Required
Upon
Request
You can request this version of PHP by creating a ticket to Support. No
Not Available
This PHP version is not available for this hosting plan.
Ticket Required
Not Officially
Supported
Not officially supported, but you can request it.  Use at your own risk.    
Hosting TypePHP 5.2.xPHP 5.3.xPHP 5.4.xPHP 5.5xOS
Shared Hosting Yes
Configuration Plugin
Yes
Configuration Plugin
Yes
Default
YesConfiguration Plugin LINUX
Windows Shared Hosting Yes
Select in Plesk
Yes
 Select in Plesk
No
Select in Plesk
No
Not Available
WIN
Reseller Hosting Yes
Configuration Plugin
Yes
Configuration Plugin
Yes
Default
Yes
Configuration Plugin
LINUX
SEO Hosting
SEO Hosting now has its own support team!

Visit the SEO Hosting website for contact information, including a new SEO phone number (866-692-9231) and updated chat support buttons.

HostGator staff no longer has access to SEO Hosting accounts and all future support requests should be sent to the new SEO Hosting Support Team.
VPS Hosting with cPanel Ticket Required
Upon
Request
Ticket Required
Upon
Request
Yes
Default
Ticket Required
Upon
Request
LINUX
VPS Hosting with Plesk No
Not Available
Yes
Default
No
Not Available
No
Not Available
LINUX
VPS with VZ Only Since this is a bare bones installation,
PHP is not installed by default,
but you can install any version you like.
LINUX
Linux Dedicated Servers Ticket Required
Upon
Request
Ticket Required
Upon
Request
Yes
Default
Ticket Required
Upon
Request
LINUX
Windows Dedicated Servers Yes
 Select in Plesk
Ticket Required
Select in Plesk
Ticket Required
Select in Plesk
No
Not Available
WIN