Enabling PHP5 on 1and1 hosting

Trying to upload a Zend Framework project to my 1and1 hosted webspace proved more complicated than it should have today.

Uploaded my working Zend project only to recieve errors when attempting to view it online, first thing to check – Is it in PHP5? According to my 1and1 control panel it is, but just to be sure I edited the local PHP settings to PHP5 too.

Still no joy, so I uploaded a phpinfo file to double check. What PHP version was it running in? PHP 4.4.9. Maybe 1and1 likes to round up!

To solve this I simply added the following line to my .htaccess:

AddType x-mapp-php5 .php

Leave a Reply

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