hostgator.in » Support Portal

PHP 5.3

Shared and Reseller

We currently have 5.3.5 installed on all servers. A handler for PHP 5.3 is added to our shared and reseller servers for those who wish to utilize it. In order to utilize this handler, you will need to add the following code to your .htaccess file:

Action application/x-hg-php53 /cgi-sys/php53
AddHandler application/x-hg-php53 .php

VPS and Dedicated Server

Do not use the Handler code listed above. Instead, you must email support@hostgator.com and request Apache be recompiled to use PHP 5.3.


Every one

Before switching, be aware of backwards compatibility issues with scripts: Older PHP coding may not be compatible with newer versions of PHP.

Please keep in mind: Using PHP 5.3 will break any sites requiring Zend or ioncube that were encoded with PHP 5.2. We recommend you check with the application developers to see if they have a 5.3 version available.


Article Comments

Javier Martinez
Works like a charm!

Thank you very much for this update!!

Amir Meshkin
I have a vps level one account. And I just noticed that I have php 5.1.6 and I'd like php 5.3.

Do I have to install this myself and can anyone help me do that? Or will hostgator do it for me?

Do I need to upgrade to level 3 with cpanel if I want easy upgrades?

HostGator
Yes, you need to install the version you want. HostGator can do that for you, but we must charge for administrator time on an unmanaged plan.

Yes, if you upgrade to Lvl 3 with cPanel, then we would upgrade the PHP for you at no cost.

Jonathan
For anyone using the .htaccess change to enable php5.3, the method given in the forum for using a custom php.ini file stops working if you do this. You need to remove the
<IfModule mod_suphp.c>
line so now it looks like:
suPHP_ConfigPath /home/xxx
<Files php.ini>
order allow,deny
deny from all
</Files>

Then it will work.

Also, remember you will need to grab a new php.ini to customize, so where the old php.ini was at
/usr/local/lib/php.ini

you need to change it to
/opt/php53/lib/php.ini

so if you're using ssh, it would be (when in your home root folder)
cp /opt/php53/lib/php.ini ./

Michael
I am so happy for this... I have sold many accounts on this fact alone.


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