my digital playground

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”:

  1. Change the ending of all php files to .php52.
  2. 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.

Bookmark, print, and share:
  • Print
  • PDF
  • Add to favorites
  • Digg
  • Facebook
  • del.icio.us
  • StumbleUpon
  • MySpace
  • Live
  • Google Bookmarks
:, , , ,

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

Archives

All entries, chronologically...