Can I switch between PHP 5.2 and 5.3?

By default all accounts will have their .php files handled by PHP 5.2, if you wish a file to be handled by PHP 5.3 you simply need to change the extension of the file to .php53. For example:

index.php will be handled by PHP 5.2
index.php53 will be handled by PHP 5.3

If you would prefer for all of your .php scripts to be handled by PHP 5.3, there are two methods:

The quickest way to enable this is to simply open your ".htaccess" file in your /public_html folder and add this line:

AddType application/x-httpd-php53 .php

The more user-friendly but time consuming method is to add this entry via your cPanel.

Log into your cPanel account.
Access the "Apache Handlers" option under the "Advanced" section.
On the "Apache Handlers" page enter the following information:
Handler: application/x-httpd-php53
Exention(s): php

If you need to access the CLI version of 5.3 for a cron job you can do so using the command "/usr/bin/php53".

  • Email, SSL
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How do I backup my site?

Login to your control panel and click on "Backups" Select "Full Backup" from the "Backups"...

How do I cancel my hosting?

To cancel your hosting account: 1. Log into the Client Area (https://www.pinchhost.com/support/)...

Where can I login to cPanel?

If you're domain is setup at PinchHost, you can access it at: http://www.yourdomain.com/cpanel/....

How do I restore backups?

Restoring your site is a simple process if you've previously downloaded a backup of your site...

What are my nameservers?

Nameservers are provided in your welcome email. If you're unable to find it, drop us a ticket.

Powered by WHMCompleteSolution