HostGator.com » Support Portal



What version of PHP are you using?

We are running PHP 5 on all of our servers. 

The version of PHP that is default depends on your hosting type and when you purchased your hosting plan.  See the chart below for a breakdown of versions and availability.

Note: If you would like to use a specific version of PHP, please see our articles on Turning on PHP 5.3 and PHP 5.4 for details.

We can also install PHP 5.4 on VPS and Dedicated Servers.

Secondary installs of PHP (both 5.3 and 5.4) are free. By "secondary install," we mean any installation of PHP that is outside what is managed via a control panel.

PHP by Hosting Type

Hosting Type PHP 5.2.x PHP 5.3.x PHP 5.4.x OS
Shared Hosting – New Accounts* No
Not Available
Yes
Default
Yes
.htaccess
LINUX
Shared Hosting
Accounts provisioned before May 1, 2013*
Yes
Default
Yes
.htaccess
No
Not Available
LINUX
Windows Shared Hosting Yes
Default
Yes
Select in Plesk
No
Not Available
WIN
Reseller Hosting – New Accounts* No
Not Available
Yes
Default
Yes
.htaccess
LINUX
Reseller Hosting
Accounts provisioned before May 16, 2013*
Yes
Default
Yes
.htaccess
No
Not Available
LINUX
SEO Hosting Yes
Default
Yes
.htaccess
No
Not Available
LINUX
VPS Hosting with cPanel Yes
Default
Ticket Required
Upon
Request
Ticket Required
Upon
Request
LINUX
VPS Hosting with Plesk No
Not Available
Yes
Default
Ticket Required
Upon
Request
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 Yes
Default
Ticket Required
Upon
Request
Ticket Required
Upon
Request
LINUX
Windows Dedicated Servers Yes
Default
Ticket Required
Upon
Request
Ticket Required
Not Officially
Supported
WIN

*Unfortunately, for shared & reseller hosting, it is not possible to switch to a server with a specific version of PHP.  All new accounts will have PHP 5.3 and PHP 5.4.  Existing accounts are "grandfathered" (continued as is) and will still have PHP 5.2 for the time being.  Since PHP 5.2 is deprecated and being phased out, it is recommended that you prepare your scripts to be compatible with PHP 5.3 or PHP 5.4 for future compatibility.

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.    

Please read the related article for the current, specific version.


Article Comments

michael du Plessis
Could you tell me if hostgator can host adult webcam chatsites ?. I bought the script from Camscripts and your site was advertised on that site.

HostGator
We allow adult content on any account, but you must have a VPS or dedicated server if you want to host a webcam.

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment