PHP handler override through .htaccess file
by Reto Vogel on Sep.17, 2009, under Computer, PHP, Tutorial
While setting up my new blog and adding some useful plugins, I asserted that my hoster’s (Hoststar – Multimedia Networks AG) default php handler is version 4.3.11 … a bit out of date I think (actual version is 5.2.x respectively 5.3.x).
After some research and try-and-error I found an easy way to change the handler without getting in contact with the support unit – thanks to my studies colleague Thomas Galliker and to Google.
There are two possibilities to bypass this “problem”:
- Change the ending of all php files to .php52.
- Add the following lines to the corresponding .htaccess File to use the PHP 5.2 handler for all php files:
Action php /cgi-php52/php
AddHandler php52 .php
After changing the handler via .htaccess file I didn’t have any problems with my installed and activated plugins.