Forums / Cotonti / Core Labs / Archive / Force PHP5 in .htaccess

Make sure your server is running PHP 5

GHengeveld
#23244 2010-02-28 00:55
Since Cotonti requires PHP 5, I found it convenient (or actually neccesary) to add a single line to my .htaccess file so the server (Mediatemple Grid Service) would treat my .php files as PHP 5.
If your server is executing files as PHP 4 you will soon find your site to die with a fatal error:
Call to undefined function: date_default_timezone_set()

Here's what I've added in .htaccess:
AddHandler php5-script .php

Perhaps we should include this in Cotonti by default.