1&1 Linux hosting still support PHP4 as default php processor for .php files. To run PHP5 you need to rename .php file as .php5 file. But it is hard to rename all application files at once. You can use PHP5 in your account by following simple steps below:

  • Create a .htaccess file or edit .htaccess file if you application already using
  • Add below lines on the top on file content
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
  • Upload .htaccess file to root folder of your hosting account.

Done!

Written by Hemant Patel

Hemant, hailing from Bhopal, Madhya Pradesh, India, is a web developer and occasional blogger passionate about exchanging ideas and addressing problems in his coding journey.

This article has 1 comments

  1. Jamie

    Is there other to do this, I did some file rename on php5 but my system crashed. What do you think I did wrong here?