Run PHP 5 as default using .htaccess

You will notice that recent released version of WordPress requires PHP version 5 to run on your site. Some web hostings are still using PHP 4 while many web hosting offers both PHP 4 and PHP 5 in their shared hosting packages that they allow you to switch between PHP 4 and PHP 5 with their hosting administration. If you can’t find this option, you can enable by using two lines of code in .htaccess file.

AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

If you already have .htaccess file, add those lines which I mentioned above. I hope this helps!

This entry was posted in Tips n Tricks and tagged . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>