Saturday, March 20, 2010

Using PHP 5 with 1and1 hosting

April 29, 2009 by admin  
Filed under Weblogs

I was using a new plugin today with one of my Wordpress blogs and it seems I am running PHP4 and the plugin needed PHP5. What to do?

Well in looking at the help stuff for my web host 1 and 1 internet I found that I just needed to add a line to my .htaccess file for the blog.

I added the following line to the top of the .htaccess file nad everything worked perfectly:

AddType x-mapp-php5 .php

It seems that the default PHP version at 1and1  internet is version 4 but just by adding the above line the default for that folder/domain will then become PHP5



Share and Enjoy:
  • BlinkList
  • del.icio.us
  • Reddit
  • Digg
  • StumbleUpon
  • FriendFeed
  • Slashdot
  • Technorati
  • Twitter
  • Tumblr

Comments

3 Responses to “Using PHP 5 with 1and1 hosting”
  1. thanks! working on migrating a customer’s site to 1&1 and was afraid that i was stuck with php4. this worked perfectly.

  2. forlorn says:

    Thanks – needed php5 for some app and never used 1&1 before! :)

  3. Ryan Battles says:

    Just what I needed! I am working with ExpressionEngine and needed to update my PHP version in order to use some plugins. Thank you for posting this tip, it worked perfectly.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!