How to switch PHP version 5.2 to 5.3 with .htaccess!

Have you ever tried switching PHP version for a single website if you hosted multiple websites in a hosting?. Using .htaccess you can easily switch PHP version from 5.2 to 5.3.

Add this line in your .htaccess file to change PHP 5.2 to PHP 5.3:

AddHandler application/x-httpd-php53 .php

If you are already using newer version ie., PHP 5.3, you can always downgrade with the same technique:

From PHP 5.3 to PHP 5.2:

AddHandler application/x-httpd-php52 .php

Enjoy coding!

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top