How to Enable PHP 5.3+ on HostGator
HostGator is a pretty ok host. I’ve had a hosting account with them for awhile and recently had to upgrade one of my sites to use PHP version 5.3+.
Enable PHP 5.3+ with via .htaccess
Open the site’s .htaccess file that you want to upgrade the PHP version in your favorite editor and add the following to top of the file:
1 2 3 |
# Use PHP 5.3 AddHandler application/x-httpd-php53 .php suPHP_ConfigPath /opt/php53/lib |
Refresh your website and you should see in your PHP info that your are indeed now using PHP version 5.3+. Hope this helps my fellow HostGatorers!
6 Comments
XboxTrial
June 16, 2013Thanks good sir! Hostgator doesn’t provide the link to the 5.3 config in their docs when upgrading to PHP 5.3, good thing I found this post on first page of Google! Thank you! You’ve just prevented my site from getting megabytes of error log clutter.
It’s mid 2013 and Hostgator still isn’t on standard..
Alief rezki
August 25, 2013no, hostgator provide you how to updrade it., just search article on support hostgator homepage.
Kenworth Peters
November 7, 2013After searching for hours, I finally got to sign up here and the problem is solve… YIPPPPeeEEE
Devin Walker
November 7, 2013Glad you got it working!
kamela kondili
November 30, 2013very very useful. thank you
kevin ch
August 12, 2014Thanks man, i was another one searching for a while for this!