Having just moved a MODX Evolution based website from the old server to a 1and1 VPS, we started getting errors about not specifying a timezone in PHP. Tried several suggestions around updating htaccess but no luck.
Adding this line to the index.php did the trick.
ini_set("date.timezone", "Europe/London");
Apparently its because the default PHP setting on the 1&1 VPS is to use Fast CGI
No comments:
Post a Comment